m ProbablePrime moved page BooleanValueDriver`1 (Component) to Component:BooleanValueDriver`1: Creating component Namespace |
Automated: update Fields, Categories |
||
Line 13: | Line 13: | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|State|Bool| The state of this component. Chooses which Value to use when driving <code>TargetField</code> | |State|Bool| The state of this component. Chooses which Value to use when driving <code>TargetField</code> | ||
|TargetField|T| The [[Field]] to drive | |TargetField|{{RootFieldType|FieldDrive`1|T}}|TypeAdv1=true| The [[Field]] to drive | ||
|FalseValue|T| The value that is used to drive <code>TargetField</code> when <code>State</code> is false. | |FalseValue|'''T'''|TypeAdv2=true| The value that is used to drive <code>TargetField</code> when <code>State</code> is false. | ||
|TrueValue|T| The value that is used to drive <code>TargetField</code> when <code>State</code> is true. | |TrueValue|'''T'''|TypeAdv3=true| The value that is used to drive <code>TargetField</code> when <code>State</code> is true. | ||
}} | }} | ||
== Behavior == | == Behavior == | ||
Line 22: | Line 22: | ||
</translate> | </translate> | ||
[[Category:Generics{{#translation:}}]] | [[Category:Generics{{#translation:}}]] | ||
[[Category:Components{{#translation:}}| | [[Category:Components{{#translation:}}|Boolean Value Driver`1]] | ||
[[Category:Components:Transform:Drivers{{#translation:}}| | [[Category:Generic Components{{#translation:}}|Boolean Value Driver`1]] | ||
[[Category:Components:Transform:Drivers{{#translation:}}|Boolean Value Driver`1]] |
Revision as of 21:25, 3 March 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image 
BooleanValueDriver`1 component as seen in the Scene Inspector

Intoduction
Drives the Field in TargetField
to the value specified in TrueValue
or FalseValue
based on State
TargetField
is generic, and is assigned a type when created in the Component Attacher
Usage
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. |
State
|
Bool | The state of this component. Chooses which Value to use when driving TargetField
|
TargetField
|
field drive of T | The Field to drive |
FalseValue
|
T | The value that is used to drive TargetField when State is false.
|
TrueValue
|
T | The value that is used to drive TargetField when State is true.
|