Summary
Holds
UltEvents.UltEvent
s 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")]
[DisallowMultipleComponent]
[RequireComponent(typeof(Collider2D))]
[UltEventsHelpUrl(typeof(TriggerEvents2D))]
public class TriggerEvents2D : MonoBehaviour
Attributes
Type | Description |
---|---|
AddComponentMenu | |
Disallow |
|
RequireComponent | |
Ult |
[Assert-Conditional]
A HelpURLAttribute which points to the UltEvents documentation.
|
Properties
Name | Value | Summary |
---|---|---|
TriggerEnterEvent | UltEvent |
Invoked by
UltEvents.TriggerEvents2D.OnTriggerEnter2D(Collider2D) . |
TriggerExitEvent | UltEvent |
Invoked by
UltEvents.TriggerEvents2D.OnTriggerExit2D(Collider2D) . |
TriggerStayEvent | UltEvent |
Invoked by
UltEvents.TriggerEvents2D.OnTriggerStay2D(Collider2D) . |
Methods
Name | Value | Summary |
---|---|---|
OnTriggerEnter2D |
void |
Invokes
UltEvents.TriggerEvents2D.TriggerEnterEvent . |
OnTriggerExit2D |
void |
Invokes
UltEvents.TriggerEvents2D.TriggerExitEvent . |
OnTriggerStay2D |
void |
Invokes
UltEvents.TriggerEvents2D.TriggerStayEvent . |