Next: Active Zone, Up: Interaction.Input [Contents][Index]
This component sends messages when an object touches (or stops touching) it. First add a list of Active Tags, these are tagged object groups that you want to activate this trigger. Next, add at least one message that you wish to send when the collision occurs.
string[]
activeTagsList of tags that trigger this message sender
bool
checkRootIf true, the tag check will be compared against the root transform of the object hit, otherwise it will be performed against the hit collider’s transform.
Default value: false
float
velocityThresholdMinimum velocity required
Default value: 0.0f
GameObject
hitPrefabObject to spawn at collision point
MessageManager.ManagedMessage
messageMessage to send when activated
MessageManager.ManagedMessage
messageToEnteringEntityMessage to send to the object we hit
bool
messageOnExitShould we send a message on exit as well?
Default value: false
MessageManager.ManagedMessage
exitMessageMessage to send on exit, if enabled
string
targetLevelName of the scene we want to load on collision. Must be added to build settings
string[]
activeTagsList of tags that trigger this message sender
bool
checkRootIf true, the tag check will be compared against the root transform of the object hit, otherwise it will be performed against the hit collider’s transform.
Default value: false
float
velocityThresholdMinimum velocity required
Default value: 0.0f
GameObject
hitPrefabObject to spawn at collision point
MessageManager.ManagedMessage
messageMessage to send when activated
MessageManager.ManagedMessage
messageToEnteringEntityMessage to send to the object we hit
bool
messageOnExitShould we send a message on exit as well?
Default value: false
MessageManager.ManagedMessage
exitMessageMessage to send on exit, if enabled
string
targetLevelName of the scene we want to load on collision. Must be added to build settings
Next: Active Zone, Up: Interaction.Input [Contents][Index]