Component:DynamicValueVariableDriver`1: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page DynamicValueVariableDriver`1 (Component) to Component:DynamicValueVariableDriver`1: Creating component Namespace
not a stub
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|Name=DynamicValueVariableDriver`1
|Name=DynamicValueVariableDriver`1
}}
}}
<!--T:2-->
== Intoduction ==
This component drives a value-type field with the contents of the dynamic variable it references.
This component drives a value-type field with the contents of the dynamic variable it references.


For demonstration purposes, the component is shown here with a [[:Category:Type:Float|float]] type.
For demonstration purposes, the component is shown here with a [[Type:Float|float]] type.


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|VariableName|String|The name of the variable to use  
|VariableName|String|The name of the variable to use
|Target|IField`1|TypeString1=IField<T>|The field to drive
|Target|{{RootFieldType|FieldDrive`1|T}}|TypeAdv1=true|The field to drive
|DefaultValue|T|The value to use if the dynamic variable cannot be resolved.
|DefaultValue|'''T'''|TypeAdv2=true|The value to use if the dynamic variable cannot be resolved.
}}
}}


Line 33: Line 29:
</translate>
</translate>
[[Category:Generics{{#translation:}}]]
[[Category:Generics{{#translation:}}]]
[[Category:Components{{#translation:}}|DynamicValueVariableDriver`1 (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Dynamic Value Variable Driver`1]]
[[Category:ComponentStubs]]
[[Category:Generic Components{{#translation:}}|Dynamic Value Variable Driver`1]]
[[Category:Components:Data:Dynamic{{#translation:}}|DynamicValueVariableDriver`1 (Component){{#translation:}}]]
[[Category:Components:Data:Dynamic{{#translation:}}|Dynamic Value Variable Driver`1]]

Latest revision as of 19:17, 23 October 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
DynamicValueVariableDriver`1 component as seen in the Scene Inspector

This component drives a value-type field with the contents of the dynamic variable it references.

For demonstration purposes, the component is shown here with a float type.

Usage

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 variable to use
Target field drive of T The field to drive
DefaultValue T The value to use if the dynamic variable cannot be resolved.

Behavior

Examples

Related Components