CollisionEvents3D Class

Summary

Holds UltEvents.UltEvents which are called by various MonoBehaviour collision events: UltEvents.CollisionEvents3D.OnCollisionEnter(Collision), UltEvents.CollisionEvents3D.OnCollisionStay(Collision), and UltEvents.CollisionEvents3D.OnCollisionExit(Collision).
Assembly
UltEvents.dll
Namespace
UltEvents
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["CollisionEvents3D"] class Type type-node

Syntax

[AddComponentMenu(UltEventUtils.ComponentMenuPrefix + "Collision Events 3D")]
[DisallowMultipleComponent]
[RequireComponent(typeof(Collider))]
[UltEventsHelpUrl(typeof(CollisionEvents3D))]
public class CollisionEvents3D : MonoBehaviour

Attributes

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

Properties

Name Value Summary
CollisionEnterEvent UltEvent<Collision>
Invoked by UltEvents.CollisionEvents3D.OnCollisionEnter(Collision).
CollisionExitEvent UltEvent<Collision>
Invoked by UltEvents.CollisionEvents3D.OnCollisionExit(Collision).
CollisionStayEvent UltEvent<Collision>
Invoked by UltEvents.CollisionEvents3D.OnCollisionStay(Collision).

Methods

Name Value Summary
OnCollisionEnter(Collision) void
Invokes UltEvents.CollisionEvents3D.CollisionEnterEvent.
OnCollisionExit(Collision) void
Invokes UltEvents.CollisionEvents3D.CollisionExitEvent.
OnCollisionStay(Collision) void
Invokes UltEvents.CollisionEvents3D.CollisionStayEvent.