|State|Bool| Determines whether TargetReference should be driven to TrueTarget or to FalseTarget.
|State|Bool| Determines whether TargetReference should be driven to TrueTarget or to FalseTarget.
|TargetReference|{{RootFieldType|RefDrive`1|T}}|TypeAdv1=true| The field that should be driven.
|TargetReference|{{RootFieldType|RefDrive`1|T}}|TypeAdv1=true| The field that should be driven.
|FalseTarget|'''T'''|TypeAdv2=true| The value that the field will be driven to if State is false.
|FalseTarget|'''T'''|TypeAdv2=true| The value that the field will be driven to if <code>State</code> is false.
|TrueTarget|'''T'''|TypeAdv3=true| The value that the field will be driven to if State is true.
|TrueTarget|'''T'''|TypeAdv3=true| The value that the field will be driven to if <code>State</code> is true.
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Attach this component to a slot by first choosing what kind of value you want to boolean switch. See [[Interface]] on how similar types can be used that are different classes (Like materials for example). Once a type has been chosen, this component can be used to switch the value in a field between two different ones using <code>State</code>
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
Can be used as an alternative to [[Component:BooleanAssetDriver|Boolean Asset Driver]] to switch assets, and as a way of switching slot references around
The value that the field will be driven to if State is false.
TrueTarget
T
The value that the field will be driven to if State is true.
Usage
Attach this component to a slot by first choosing what kind of value you want to boolean switch. See Interface on how similar types can be used that are different classes (Like materials for example). Once a type has been chosen, this component can be used to switch the value in a field between two different ones using State
Examples
Can be used as an alternative to Boolean Asset Driver to switch assets, and as a way of switching slot references around