Component:MultiBoolConditionDriver: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page MultiBoolConditionDriver (Component) to Component:MultiBoolConditionDriver: Creating component Namespace
Automated: update Fields, Categories
 
Line 10: Line 10:
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|Target|Bool| The field to drive to true if the bools in <code>Conditions</code> meet the conditions set by <code>ConditionMode</code>
|Target|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv0=true| The field to drive to true if the bools in <code>Conditions</code> meet the conditions set by <code>ConditionMode</code>
|Mode|ConditionMode| What state the bools in <code>Conditions</code> must be in, to drive <code>Target</code> to true.
|Mode|'''[[#ConditionMode|ConditionMode]]'''|TypeAdv1=true| What state the bools in <code>Conditions</code> must be in, to drive <code>Target</code> to true.
|Conditions|Condition| A list of bool fields to compare against the <code>ConditionMode</code>
|Conditions|{{RootFieldType|SyncList`1|[[#Condition|Condition]]}}|TypeAdv2=true| A list of bool fields to compare against the <code>ConditionMode</code>
}}
}}
== Behavior ==
== Behavior ==
Line 18: Line 18:
== Related Components ==
== Related Components ==
</translate>
</translate>
[[Category:Components{{#translation:}}|MultiBoolConditionDriver (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Multi Bool Condition Driver]]
[[Category:Components:Transform:Drivers{{#translation:}}|MultiBoolConditionDriver (Component){{#translation:}}]]
[[Category:Components With Nested Enums{{#translation:}}|Multi Bool Condition Driver]]
[[Category:Components With Nested Types{{#translation:}}|Multi Bool Condition Driver]]
[[Category:Components:Transform:Drivers{{#translation:}}|Multi Bool Condition Driver]]

Latest revision as of 21:26, 3 March 2024


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


Component image 
MultiBoolConditionDriver component as seen in the Scene Inspector

Intoduction

The MultiBoolConditionDriver drives Target depending on the state of the Conditions list, and the ConditionMode selected.

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.
Target field drive of Bool The field to drive to true if the bools in Conditions meet the conditions set by ConditionMode
Mode ConditionMode What state the bools in Conditions must be in, to drive Target to true.
Conditions list of Condition A list of bool fields to compare against the ConditionMode

Behavior

Examples

Related Components