Table of Contents

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 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 Vector2 Value { get; set; }

Property Value

Vector2

Methods

ClampToRange(in Vector2, long, long)

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

Parameters

value Vector2
minRange long
maxRange long

Returns

Vector2

DiffersFrom(Vector2, Vector2)

protected override bool DiffersFrom(Vector2 first, Vector2 second)

Parameters

first Vector2
second Vector2

Returns

bool

GetCompressedValue(Vector2)

protected override Vector2 GetCompressedValue(Vector2 value)

Parameters

value Vector2

Returns

Vector2

GetInterpolatedAt(double)

public override Vector2 GetInterpolatedAt(double time)

Parameters

time double

Returns

Vector2

Interpolate(double, Vector2)

protected override Vector2 Interpolate(double time, Vector2 currentValue)

Parameters

time double
currentValue Vector2

Returns

Vector2

ReadComponentData(ICoherenceComponentData, Vector3)

protected override Vector2 ReadComponentData(ICoherenceComponentData coherenceComponent, Vector3 floatingOriginDelta)

Parameters

coherenceComponent ICoherenceComponentData
floatingOriginDelta Vector3

Returns

Vector2