TriggerEvents2D Class

Summary

Holds UltEvents.UltEvents which are called by various MonoBehaviour 2D trigger events: UltEvents.TriggerEvents2D.OnTriggerEnter2D(Collider2D), UltEvents.TriggerEvents2D.OnTriggerStay2D(Collider2D), and UltEvents.TriggerEvents2D.OnTriggerExit2D(Collider2D).
Assembly
UltEvents.dll
Namespace
UltEvents
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["TriggerEvents2D"] class Type type-node

Syntax

[AddComponentMenu(UltEventUtils.ComponentMenuPrefix + "Trigger Events 2D")]
[HelpURL(UltEventUtils.APIDocumentationURL + "/TriggerEvents2D")]
[DisallowMultipleComponent]
[RequireComponent(typeof(Collider2D))]
public class TriggerEvents2D : MonoBehaviour

Attributes

Type Description
AddComponentMenu
HelpURL
DisallowMultipleComponent
RequireComponent

Properties

Name Value Summary
TriggerEnterEvent TriggerEvent2D
Invoked by UltEvents.TriggerEvents2D.OnTriggerEnter2D(Collider2D).
TriggerExitEvent TriggerEvent2D
Invoked by UltEvents.TriggerEvents2D.OnTriggerExit2D(Collider2D).
TriggerStayEvent TriggerEvent2D
Invoked by UltEvents.TriggerEvents2D.OnTriggerStay2D(Collider2D).

Methods

Name Value Summary
OnTriggerEnter2D(Collider2D) void
Invokes UltEvents.TriggerEvents2D.TriggerEnterEvent.
OnTriggerExit2D(Collider2D) void
Invokes UltEvents.TriggerEvents2D.TriggerExitEvent.
OnTriggerStay2D(Collider2D) void
Invokes UltEvents.TriggerEvents2D.TriggerStayEvent.