Table of Contents

ValueBinding<T>

class in Coherence.Toolkit.Bindings
inherits from Binding

Base class used for all synced fields, properties and parameters.

Type Parameters

T

The coherence value type used to serialize the field or property. The coherence value type may differ from the unity value type. For example, all integer types: uint, short, ushort, byte, char are backed by int as their coherence value type.

Constructors
ValueBinding()
ValueBinding(Descriptor, Component)
Fields
valueSyncNew
valueSyncOld
valueSyncPrepared
Properties
Interpolator
SignaturePlainText
SignatureRichText

Rich text representation of the binding's name and type that is displayed in the Configure and Optimize binding windows.

UntypedValue

The current Value expressed as an object. This is useful when the exact binding type is unknown (e.g., in unit tests) but should be avoided in hotpaths due to boxing.

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.

Methods
ClampToRange(in T, long, long)
CloneTo(Binding)
DiffersFrom(T, T)
GetCallbackMethodInfo()
GetCompressedValue(T)
GetHashCode()
GetInterpolatedAt(double)
GetMemberInfo()

Returns a FieldInfo or PropertyInfo depending on the member type of the target member on the unity component. The MemberInfo is retrieved using reflection but cached to speed up subsequent access.

GetValueUsingReflection()
Interpolate(double)
Interpolate(double, T)
InvokeValueSyncCallback()
IsDirty(AbsoluteSimulationFrame, out bool, out bool)
MarkAsReadyToSend()
ReadComponentData(ICoherenceComponentData, Vector3)
ReceiveComponentData(ICoherenceComponentData, AbsoluteSimulationFrame, Vector3)
ReceiveSampleFromNetwork(T, bool, AbsoluteSimulationFrame, AbsoluteSimulationFrame)
RemoveOutdatedSamples(double)
ResetLastSentData()
SampleValue()
SetToLastSample()
SetValueUsingReflection(object)
ValidateNotBound()
WriteComponentData(ICoherenceComponentData, AbsoluteSimulationFrame)