Variables & Fields
Get Field
Reads a field of a component on the object this script is attached to.
Get Field
Out
Node image coming soon
Usage
Declare the component and its fields in the Components panel of the scripting tab first; the two dropdowns on the node then list what you declared. Attaching the script adds those components to the object automatically, so the field always exists at runtime. This is where per-object state belongs — health, speed, flags — because it persists on the object rather than in the script.
On the node
component
One of the script's declared components.
field
A field on that component. Its type drives the output.
Outputs
| Type | Name | Description |
|---|---|---|
| dynamic | Out | The field's value, in its declared type. |