MUSwitcher

Included since version 6.2.2 beta 7175

The MU Switcher component allows dynamic switching of parts or variants of Moving Units (MUs) based on sensor triggers. It is typically used in scenarios where different configurations or visual representations of an MU need to be activated during runtime (e.g., for visual changes, turning easy MUs into complex ones and so on).

Changing MUs with MUSwitcher (Demo2 in DemoChangeMU demonstration model)

Properties

Switch To Group: The name of the group (e.g., MUVariant1) that should be activated when an MU enters the sensor area.

MUSwitcher attached to a Sensor

When an MU enters the sensor associated with the MUSwitcher:

  1. All subcomponents of the MU that are part of the specified group (matching the Switch To Group) are enabled (set active).

  2. All other groups are disabled (set inactive).

  3. Any GameObjects under the MU that do not belong to a group remain in their current active state

Requirements

  • The MUSwitcher must be attached to the same GameObject as a Sensor component.

  • MU subcomponents must include a Group component that defines their GroupName.

Example of a part with several Groups

Last updated