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

Aspect
FieldVariable
DynamicVariable

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

Class
Description

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

Last updated