Class Vector2Binding
- Namespace
- Coherence.Toolkit.Bindings.ValueBindings
- Assembly
- Coherence.Toolkit.dll
public class Vector2Binding : ValueBinding<Vector2>
- Inheritance
-
Vector2Binding
- Inherited Members
Constructors
Vector2Binding()
protected Vector2Binding()
Vector2Binding(Descriptor, Component)
public Vector2Binding(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 Vector2 Value { get; set; }
Property Value
Methods
ClampToRange(in Vector2, long, long)
protected override Vector2 ClampToRange(in Vector2 value, long minRange, long maxRange)
Parameters
Returns
DiffersFrom(Vector2, Vector2)
protected override bool DiffersFrom(Vector2 first, Vector2 second)
Parameters
Returns
GetCompressedValue(Vector2)
protected override Vector2 GetCompressedValue(Vector2 value)
Parameters
value
Vector2
Returns
GetInterpolatedAt(double)
public override Vector2 GetInterpolatedAt(double time)
Parameters
time
double
Returns
Interpolate(double, Vector2)
protected override Vector2 Interpolate(double time, Vector2 currentValue)
Parameters
Returns
ReadComponentData(ICoherenceComponentData, Vector3)
protected override Vector2 ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta)
Parameters
coherenceComponent
ICoherenceComponentDatafloatingOriginDelta
Vector3