Class BindableEnum<T>
Class which contains an enum 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 BindableEnum<T> : BindableVariableBase<T>, IReadOnlyBindableVariable<T> where T : struct, IConvertible
Type Parameters
Name | Description |
---|---|
T | The type of the variable enum. |
Remarks
Uses GetHashCode
for comparison since Equals
on an enum
causes GC alloc.
Constructors
Name | Description |
---|---|
Bindable |
Constructor for bindable enum, which is a variable that notifies listeners when the internal enum value changes. |
Methods
Name | Description |
---|---|
Value |
Performs equal operation by comparing hash codes. |