Component:DynamicReferenceVariable: Difference between revisions

From Resonite Wiki
Add template
Automated: update Fields, Categories
 
Line 12: Line 12:
{{Table ComponentFields
{{Table ComponentFields
|VariableName|String| {{Template:Variable Name Component}}
|VariableName|String| {{Template:Variable Name Component}}
|Reference|IWorldElement| The reference this variable holds. Can set and be changed by the [[Dynamic Variables]] system.
|Reference|'''T'''|TypeAdv1=true| The reference this variable holds. Can set and be changed by the [[Dynamic Variables]] system.
|OverrideOnLink|Bool| {{Template:OverrideOnLink Field}}
|OverrideOnLink|Bool| {{Template:OverrideOnLink Field}}
}}
}}
Line 28: Line 28:
[[Category:Generics{{#translation:}}]]
[[Category:Generics{{#translation:}}]]
[[Category:Components{{#translation:}}|Dynamic Reference Variable`1]]
[[Category:Components{{#translation:}}|Dynamic Reference Variable`1]]
[[Category:Generic Components{{#translation:}}|Dynamic Reference Variable`1]]
[[Category:Components:Data:Dynamic{{#translation:}}|Dynamic Reference Variable`1]]
[[Category:Components:Data:Dynamic{{#translation:}}|Dynamic Reference Variable`1]]

Latest revision as of 22:29, 16 March 2025

A dynamic reference variable is a component that allows storing any reference Type inside the component. The reference is then accessible and changeable via the Dynamic Variables system.

Component image 
Dynamic Reference Variable`1 component as seen in the Scene Inspector


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. Some components stop their functionality when this field is disabled, but some don't.
VariableName String The Variable name that will be used to link this component's refrenced value to the Dynamic Variables System.
Reference T The reference this variable holds. Can set and be changed by the Dynamic Variables system.
OverrideOnLink Bool whether this component should write its value to a Dynamic Variable Space Component when it links to the space, updating all child variables with the same name and type.

Usage

This component can be used as an accessory and setter of the Dynamic Variables system. For more info check the Dynamic Variables page.

Examples

Related Components