ValueReference<TValue, TVariable>
Class in Zigurous.Architecture
Declaration
[Serializable]
public abstract class ValueReference<TValue, TVariable>
where TVariable : ScriptableVariable<TValue>
Description
A reference to a value of the specified type, either a fixed value or a variable.
Type Parameters
TValue | The type of value. |
TVariable | The type of variable reference. |
Properties
useVariable | Uses a variable reference instead of a fixed value. |
variable | The variable to reference. |
fixedValue | The fixed value to use. |
value | The current value, either the fixed value or the value of the referenced variable. |
Constructors
ValueReference | Creates a new value reference. |
Methods
SetFixedValue | Switches to use a fixed value and assigns the provided value. |
SetVariable | Switches to use a variable reference and assigns the provided variable. |