Component:BooleanSwitcher

From Resonite Wiki
Revision as of 16:41, 23 October 2024 by 989onan (talk | contribs) (add info about a type idk the name of)


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.
ActivationMode ??? Allows for enabling items in Target based on ActiveIndex number. The options are "AtIndexOnly" which activates only item at ActiveIndex. There is "AfterIndex" which activates all items after ActiveIndex. "BeforeIndex" which activates all items that are before ActiveIndex. and "AllButIndex" which activates all items except the one at ActiveIndex which will be disabled.

Usage

Examples

Related Issues

Related Components