Variable
Internal storage backends for the Action Variables subsystem. The Variable abstract base class defines a uniform get/set API, with two sealed implementations that determine where the value lives.
Architecture
Comparison
Storage
Reads/writes the actual field on the owner object via reflection
Holds value in an internal object field
Created when
An Action field is marked with [Variable]
ActionVariables.AddVariable() is called at runtime
Owner
Requires an owner object (the Action instance)
Standalone — no owner
Removable
No — discovered automatically from reflection
Yes — via ActionVariables.RemoveVariable()
Visibility
internal sealed
internal sealed
Classes
Abstract base defining Type, Name, GetValue(), and SetValue().
Reflection-backed variable that reads/writes a field on an owner object.
Self-contained variable storing its value internally.
See Also
ActionVariable — the public-facing wrapper that uses a
VariableinternallyActionVariables — the container that creates and manages variables
Action Variables Subsystem — subsystem overview
Last updated