Skip to main content

Groups

These components let you enable/disable a group of other components.

In this section you will learn about the following components:

  • Animator Group
  • Group Activator
  • On Enable Event
  • Random Activator
  • Component Activator

Animator Group

Animator Group

The Animator Group component allows you to control all animators listed within one action by a component event or a procedure action.

PropertyFunction
AutogetIf clicked, the children's Animator components are added to the list of Animators.
AnimatorsList of controlled animators.

Group Activator

Group Activator

The Group Activator component controls a list of GameObjects that will be enabled in a scene one at a time (by event or procedure). The active GameObject can be called directly, or by following the list order in a cycle.

PropertyFunction
Distinct OnlyIf enabled, GameObjects cannot be listed more than once.
Single Active OnlyIf true, will return a negative index of the active object if there are more than one active at the same time.
Start IndexThe first Element number of the list that is considered when using the GameObject cycling activation.
End IndexThe last Element number of the list that is considered when using the GameObject cycling activation.
ResetTo reset to the total number of objects inside the list.
LoopIf enabled, the end index element is followed by the first index element, starting all over again the loop.
ObjectsList of GameObjects inside the group.

On Enable Event

On Enable Event

The On Enable Event component triggers required Events whenever the GameObject is enabled or disabled.

PropertyFunction
On Enable Raise DelayIf checked, the defined delay [sec] is erased before triggering the event.
On Disable Raise DelayIf checked, the defined delay [sec] is erased before triggering the event.

Random Activator

Random Activator

The Random Activator component randomly activates one listed GameObject, as well as enables one GameObject at a time by following the list order in a cycle.

PropertyFunction
Start RandomizedIf enabled, one GameObject in the list is activated randomly when the game is On Play, or the component is activated.
RandomizeChoose a random element to activate from the Objects list.
Exclusive ActivationIf enabled, all GameObjects in the list that were not activated randomly are disabled.
Cycle FromThe first Element number of the list that is considered when using the GameObject cycling activation.
Cycle ToThe last Element number of the list that is considered when using the GameObject cycling activation.
ResetTo reset to the total number of objects inside the list.
ObjectsList of GameObjects inside the group.

Component Activator

Component Activator

The Component Activator component controls a list of Components that will be enabled in a scene one at a time (by event or procedure). The active Components can be called directly, or by following the list order in a cycle.

PropertyFunction
Distinct OnlyIf enabled, Components cannot be listed more than once.
Start IndexThe first Element number of the list that is considered when using the Component cycling activation.
End IndexThe last Element number of the list that is considered when using the Component cycling activation.
ResetTo reset to the total number of objects inside the list.
ObjectsList of Components inside the group.