Next: , Previous: , Up: Interaction.Input   [Contents][Index]


9.1.2 Active Zone

Component: ActiveZone

This component sends messages when an object enters, exits, or stays in a given trigger area. Must be attached to a collider marked ’isTrigger’. To use, ensure that this object’s collision layer collides only with objects you wish to activate it. Then, define some Messages to be sent by drag & dropping a target onto ’Message Target’ then selecting a message from the list you want to send. You can also use tags to further cull the results.

See https://youtu.be/K-7MAukHq-A.

Field of ActiveZone: List<string> activeTags

A list of tags that trigger this message sender

Default value: new List<string>()

Output Settings

Field of ActiveZone: bool checkRoot

When checking tags, do we check the collision object or it’s root transform?

Default value: false

Optional Field of ActiveZone: string mecanimTrigger

Trigger for Mecanim to occur when the zone is triggered

Field of ActiveZone: MessageManager.ManagedMessage message

Message to send on entry

Field of ActiveZone: MessageManager.ManagedMessage messageToEnteringEntity

Message to send to the object that entered the trigger

Field of ActiveZone: bool messageOnExit

Should we send a message when the object leaves?

Default value: false

Field of ActiveZone: MessageManager.ManagedMessage exitMessage

Message to send when the object leaves, if enabled

Field of ActiveZone: string targetLevel

Name of the scene to load when triggered, must be added to build settings

Field of ActiveZone: List<string> activeTags

A list of tags that trigger this message sender

Default value: new List<string>()

Output Settings

Field of ActiveZone: bool checkRoot

When checking tags, do we check the collision object or it’s root transform?

Default value: false

Optional Field of ActiveZone: string mecanimTrigger

Trigger for Mecanim to occur when the zone is triggered

Field of ActiveZone: MessageManager.ManagedMessage message

Message to send on entry

Field of ActiveZone: MessageManager.ManagedMessage messageToEnteringEntity

Message to send to the object that entered the trigger

Field of ActiveZone: bool messageOnExit

Should we send a message when the object leaves?

Default value: false

Field of ActiveZone: MessageManager.ManagedMessage exitMessage

Message to send when the object leaves, if enabled

Field of ActiveZone: string targetLevel

Name of the scene to load when triggered, must be added to build settings


Next: , Previous: , Up: Interaction.Input   [Contents][Index]