Class BindableVariableAlloc<T>
Generic class which contains a member variable of type T
and provides a binding API to data changes.
If T
is IEquatable
, use BindableVariable<T> instead.
Implements
Inherited Members
Namespace: Unity.XR.CoreUtils.Bindings.Variables
Assembly: solution.dll
Syntax
public class BindableVariableAlloc<T> : BindableVariableBase<T>, IReadOnlyBindableVariable<T>
Type Parameters
Name | Description |
---|---|
T | The type of the variable value. |
Remarks
This class can be used for types which are not IEquatable
.
Since T
is not IEquatable
, when setting the value,
it calls object.Equals
and will GC alloc.
Constructors
Name | Description |
---|---|
BindableVariableAlloc(T, bool, Func<T, T, bool>, bool) | Constructor for bindable variable of type |