Table of Contents

Class IntBinding

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

Constructors

IntBinding()

protected IntBinding()

IntBinding(Descriptor, Component)

public IntBinding(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 int Value { get; set; }

Property Value

int

Methods

ClampToRange(in int, long, long)

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

Parameters

value int
minRange long
maxRange long

Returns

int

DiffersFrom(int, int)

protected override bool DiffersFrom(int first, int second)

Parameters

first int
second int

Returns

bool

GetInterpolatedAt(double)

public override int GetInterpolatedAt(double time)

Parameters

time double

Returns

int

Interpolate(double, int)

protected override int Interpolate(double time, int currentValue)

Parameters

time double
currentValue int

Returns

int