Component:DynamicField

From Resonite Wiki
Revision as of 14:23, 14 November 2024 by Yosh (talk | contribs) (move from `1 here)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
DynamicField<T> component as seen in the Scene Inspector

The DynamicField<T> binds the field pointed to by TargetField to the dynamic variable referred to by VariableName. The field must be a value type.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
VariableName String The name of the dynamic variable to be used
TargetField direct RelayRef`1<IField`1<T>> The field that will be used as the dynamic variable's value.
OverrideOnLink Bool If true, the value of the field will be written when this component is moved into a new space

Usage

This component works almost exactly like the DynamicValueVariable component, except that the value used for the dynamic variable is sourced from a separate field. This field will be automatically updated with the value of the dynamic variable, and writing to the field will write to the dynamic variable. This can be used to directly bind fields of separate components as a dynamic variable without having to use a DynamicValueVariableDriver or similar setup.

Examples

See Also