Trigger Zone
This component belongs to the following package:
- com.yahaha.sdk.trigger
This Trigger Zone component encapsulates box, capsule, or sphere colliders on the YahahaObject (and its children). It sends events when other objects enter or exit the collider.
Property | Description |
---|---|
Hide | Default is true. Determines whether to hide trigger boxes during playmode. In the Trigger Zone Prefab, the trigger box has a mesh renderer to display its position relative to other neighboring game objects. |
Include Objects | Objects that can trigger events. If not empty, ONLY objects in this list will trigger the events below. |
Exclude Objects | Objects that are prevented from triggering events. This property is only effective when there are no objects included in the Include Objects list. |
Events and Actions
Events
- OnTriggerZonePlayerEnter: Fired when the player enters the zone.
Actions
- None