Class BindableVariable<T>
Generic class which contains a member variable of type T
and provides a binding API to data changes.
Implements
Inherited Members
Namespace: Unity.XR.CoreUtils .Bindings.Variables
Assembly: solution.dll
Syntax
public class BindableVariable<T> : BindableVariableBase<T>, IReadOnlyBindableVariable<T> where T : IEquatable<T>
Type Parameters
Name | Description |
---|---|
T | The type of the variable value. |
Remarks
T
is IEquatable
to avoid GC alloc that would occur with object.Equals
in the base class.
Constructors
Name | Description |
---|---|
Bindable |
Constructor for bindable variable of type |
Methods
Name | Description |
---|---|
Value |
Evaluates equality with the internal value held by the bindable variable. |