Component:DynamicValueVariableDriver: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page DynamicValueVariableDriver (Component) to Component:DynamicValueVariableDriver: Creating component Namespace
add info
 
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
Dynamic Value Variable Driver is a component that can drive a [[Type:IField`1|IField`1 (Value Holder)]] to the value assigned to a dynamic variable with the name <code>VariableName</code>. if the specified variable cannot be found, the value will revert to <code>DefaultTarget</code> how this works is explained on [[Dynamic Variables]] page.
{{Infobox Component
{{Infobox Component
|Image=DynamicValueVariableDriver`1Component.png
|Image=DynamicValueVariableDriver`1Component.png
Line 11: Line 11:
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|VariableName|String|
|VariableName|String| {{Template:Variable Name Component}}
|Target|IField`1|TypeString1=IField<int>|
|Target|IField`1| {{Template:DefaultTarget Field}}
|DefaultValue|Int|
}}
}}


Line 25: Line 24:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Generics{{#translation:}}]]
[[Category:Generics{{#translation:}}]]
[[Category:Components{{#translation:}}|Dynamic Value Variable Driver`1]]
[[Category:Components{{#translation:}}|Dynamic Value Variable Driver`1]]
[[Category:Components:Data:Dynamic{{#translation:}}|Dynamic Value Variable Driver`1]]
[[Category:Components:Data:Dynamic{{#translation:}}|Dynamic Value Variable Driver`1]]

Latest revision as of 16:51, 19 March 2024

Dynamic Value Variable Driver is a component that can drive a IField`1 (Value Holder) to the value assigned to a dynamic variable with the name VariableName. if the specified variable cannot be found, the value will revert to DefaultTarget how this works is explained on Dynamic Variables page.

Component image 
Dynamic Value Variable Driver`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.
Target IField`1 The value/reference to revert to when this component cannot find the specified VariableName dynamic variable.

Usage

Examples

Related Components