You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Krzysztof Biernat edited this page Oct 31, 2020
·
1 revision
Game Event Triggers
Game Event Triggers are components that can help you trigger your Game Events on one of the unity event(Awake, OnEnable etc.) without need to write additional code. All default game events are supported.
Use Event Trigger to trigger Game Event on one of this unity event:
Awake
OnEnable
Start
OnDisable
OnDestroy
Use Collision Event Trigger to trigger Game Event on one of this unity event:
OnTriggerEnter
OnTriggerEnter2D
OnTriggerExit
OnTriggerExit2D
OnCollisionEnter2D
OnCollisionEnter
OnCollisionExit2D
OnCollisionExit
Collision Event Triggers support dynamic parameter for parameters which type derived from Component, like ParticleSystem or Rigidbody. If dynamic parameter is tick then Game Event will be call with component attached to the gameobject which trigger on of the unity physic events. If the component is not present then one of the following think happen, depends on chosen behavior:
StopOnNull - won't trigger event if component is null
TriggerWithDefualt - will trigger event with component set in editor
TriggerWithNull - will trigger event passing null as the argument