Table of Contents

Class FloatBinding

Namespace
Coherence.Toolkit.Bindings.ValueBindings
Assembly
Coherence.Toolkit.dll
public class FloatBinding : ValueBinding<float>
Inheritance
FloatBinding
Derived
Inherited Members

Constructors

FloatBinding()

protected FloatBinding()

FloatBinding(Descriptor, Component)

public FloatBinding(Descriptor descriptor, Component unityComponent)

Parameters

descriptor Descriptor
unityComponent Component

Properties

CoherenceComponentName

public override string CoherenceComponentName { get; }

Property Value

string

Value

The current value of the target field/property on the binding's Unity component. This is generally the value you'll see in the inspector.

public override float Value { get; set; }

Property Value

float

Methods

ClampToRange(in float, long, long)

protected override float ClampToRange(in float value, long minRange, long maxRange)

Parameters

value float
minRange long
maxRange long

Returns

float

DiffersFrom(float, float)

protected override bool DiffersFrom(float first, float second)

Parameters

first float
second float

Returns

bool

GetCompressedValue(float)

protected override float GetCompressedValue(float value)

Parameters

value float

Returns

float

GetInterpolatedAt(double)

public override float GetInterpolatedAt(double time)

Parameters

time double

Returns

float

Interpolate(double, float)

protected override float Interpolate(double time, float currentValue)

Parameters

time double
currentValue float

Returns

float

ReadComponentData(ICoherenceComponentData, Vector3)

protected override float ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta)

Parameters

coherenceComponent ICoherenceComponentData
floatingOriginDelta Vector3

Returns

float