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")]
[DisallowMultipleComponent]
[RequireComponent(typeof(Collider2D))]
[UltEventsHelpUrl(typeof(TriggerEvents2D))]
public class TriggerEvents2D : MonoBehaviour

Attributes

Type Description
AddComponentMenu
DisallowMultipleComponent
RequireComponent
UltEventsHelpUrlAttribute [Assert-Conditional] A HelpURLAttribute which points to the UltEvents documentation.

Properties

Name Value Summary
TriggerEnterEvent UltEvent<Collider2D>
Invoked by UltEvents.TriggerEvents2D.OnTriggerEnter2D(Collider2D).
TriggerExitEvent UltEvent<Collider2D>
Invoked by UltEvents.TriggerEvents2D.OnTriggerExit2D(Collider2D).
TriggerStayEvent UltEvent<Collider2D>
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.