mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-18 04:10:06 +08:00
20 lines
789 B
Markdown
20 lines
789 B
Markdown
# Object Toggle
|
|
|
|
![Object Toggle](object-toggle.png)
|
|
|
|
The Object Toggle component allows you to change the active state of one or more other GameObjects, based on the active
|
|
state of a controlling object.
|
|
|
|
Object Toggle is a type of [Reactive Component](./index.md). See that page for general rules and behavior of reactive
|
|
components.
|
|
|
|
## When should I use it?
|
|
|
|
This component is useful to disable one mesh when another mesh is covering it entirely. For example, you might want to
|
|
disable an underwear mesh when it's fully covered by other clothing.
|
|
|
|
## Setting up Object Toggle
|
|
|
|
Simply add an Object Toggle component to the controlling object, then click the + and select a target object to be
|
|
controlled. The checkmark controls whether the target object will be enabled or disabled.
|