Component:DynamicValueVariable: Difference between revisions

From Resonite Wiki
imported>Mysticporo
Created page with "<languages></languages> <translate> <!--T:1--> {{stub}} {{Infobox Component |Image=DynamicValueVariable`1Component.png |Name=Dynamic Value Variable`1 }} <!--T:2--> == Fields..."
 
add info
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
A dynamic value variable is a component that allows storing any value [[:Category:Type|Type]] inside the component. The value is then accessible and changeable via the [[Dynamic Variables]] system.
{{Infobox Component
{{Infobox Component
|Image=DynamicValueVariable`1Component.png
|Image=DynamicValueVariable`1Component.png
Line 11: Line 11:
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|VariableName|String|
|VariableName|String| {{Template:Variable Name Component}}
|Value|Int|
|Value|Int| The value this variable holds. Can set and be changed by the [[Dynamic Variables]] system.
|OverrideOnLink|Bool|
|OverrideOnLink|Bool| {{Template:OverrideOnLink Field}}
}}
}}


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
This can be used to store values that should be accessible to different things underneath and outside of a system. This is useful if the item needs to be able to have it's color changed, or other properties that need to have quick synchronization and access. For more info see the [[Dynamic Variables]] page.


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==


<!--T:5-->
<!--T:5-->
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Generics{{#translation:}}]]
[[Category:Generics{{#translation:}}]]
[[Category:Components{{#translation:}}|Dynamic Value Variable`1]]
[[Category:Components{{#translation:}}|Dynamic Value Variable`1]]
[[Category:Components:Data:Dynamic{{#translation:}}|Dynamic Value Variable`1]]
[[Category:Components:Data:Dynamic{{#translation:}}|Dynamic Value Variable`1]]

Latest revision as of 17:10, 19 March 2024

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

Component image 
Dynamic Value 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.
VariableName String The Variable name that will be used to link this component's refrenced value to the Dynamic Variables System.
Value Int The value 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 can be used to store values that should be accessible to different things underneath and outside of a system. This is useful if the item needs to be able to have it's color changed, or other properties that need to have quick synchronization and access. For more info see the Dynamic Variables page.

Examples

Related Components