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
DescriptorunityComponent
Component
Properties
CoherenceComponentName
public override string CoherenceComponentName { get; }
Property Value
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
Methods
ClampToRange(in float, long, long)
protected override float ClampToRange(in float value, long minRange, long maxRange)
Parameters
Returns
DiffersFrom(float, float)
protected override bool DiffersFrom(float first, float second)
Parameters
Returns
GetCompressedValue(float)
protected override float GetCompressedValue(float value)
Parameters
value
float
Returns
GetInterpolatedAt(double)
public override float GetInterpolatedAt(double time)
Parameters
time
double
Returns
Interpolate(double, float)
protected override float Interpolate(double time, float currentValue)