Component:BooleanSwitcher: Difference between revisions

From Resonite Wiki
imported>Psychpsyo
Wrote Article
 
Automated: update Fields
 
(2 intermediate revisions by one other user not shown)
Line 15: Line 15:
{{Table ComponentFields
{{Table ComponentFields
|AutoAddChildren|Bool| If true, the Targets list will be automatically populated with the child slots of the slot that this component is on.
|AutoAddChildren|Bool| If true, the Targets list will be automatically populated with the child slots of the slot that this component is on.
|Targets|SyncList`1|TypeString1=SyncList<FieldDrive<bool>>| The list of slots of which one will be enabled.
|Targets|{{RootFieldType|SyncList`1|[[Type:FieldDrive`1|FieldDrive`1]]&lt;[[Type:Bool|Bool]]&gt;}}|TypeAdv1=true| The list of slots of which one will be enabled.
|ActiveIndex|Int| The index of the currently active slot.
|ActiveIndex|Int| The index of the currently active slot.
}}
}}
Line 29: Line 29:
<!--T:5-->
<!--T:5-->
== Related Issues ==
== Related Issues ==
[https://github.com/Neos-Metaverse/NeosPublic/issues/301 <s>#301 - Request: Add Auto-Add Children to BooleanSwitcher</s>]


[https://github.com/Neos-Metaverse/NeosPublic/issues/451 <s>#451 - BooleanSwitcher applies to root on undo of deleted component from a deleted object</s>]


<!--T:6-->
<!--T:6-->

Latest 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 
Boolean Switcher component as seen in the Scene Inspector


The BooleanSwitcher component can be used to enable a specified slot from a list of slots. It does so by driving the Active field of the slots.

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.
AutoAddChildren Bool If true, the Targets list will be automatically populated with the child slots of the slot that this component is on.
Targets list of FieldDrive`1<Bool> The list of slots of which one will be enabled.
ActiveIndex Int The index of the currently active slot.

Usage

Examples

Related Issues

Related Components