unity-atoms/docs/api/unityatoms.monohooks.md
2019-10-16 01:43:51 +02:00

3.8 KiB

id title hide_title sidebar_label
unityatoms.monohooks UnityAtoms.MonoHooks true UnityAtoms.MonoHooks

Namespace - UnityAtoms.MonoHooks

VoidGameObjectAction

Action x 2 of type Void and GameObject. Inherits from AtomAction<Void, GameObject>.


Collider2DGameObjectEvent

Event x 2 of type Collider2D and GameObject. Inherits from AtomEvent<Collider2D, GameObject>.


ColliderGameObjectEvent

Event x 2 of type Collider and GameObject. Inherits from AtomEvent<Collider, GameObject>.


VoidGameObjectEvent

Event x 2 of type Void and GameObject. Inherits from AtomEvent<Void, GameObject>.


Collider2DHook

Base class for all MonoHooks of type Collider2D.


ColliderHook

Base class for all MonoHooks of type Collider.


MonoHook<E1,E2,EV,F>

Type Parameters

  • E1 - Event of type AtomEvent<EV>
  • E2 - Event of type AtomEvent<EV, GameObject>
  • EV - Event value type
  • F - Function type AtomFunction<GameObject, GameObject>

Generic base class for all Mono Hooks.

Variables

Event

The Event


EventWithGameObjectReference

Event including a GameObject reference.


_selectGameObjectReference

Selector function for the Event EventWithGameObjectReference. Makes it possible to for example select the parent GameObject and pass that a long to the EventWithGameObjectReference.


OnAwakeHook

Mono Hook for Awake.

Variables

_listener

Listener


_listenerWithGameObject

Listener with GameObject reference


OnButtonClickHook

Mono Hook for On Button Click


OnDestroyHook

Mono Hook for OnDestroy


OnFixedUpdateHook

Mono Hook for FixedUpdate


OnLateUpdateHook

Mono Hook for LateUpdate


OnPointerDownHook

Mono Hook for OnPointerDown


OnStartHook

Mono Hook for Start


OnTrigger2DHook

Mono Hook for OnTriggerEnter2D, OnTriggerExit2D and OnTriggerStay2D

Variables

_triggerOnEnter

Set to true if Event should be triggered on OnTriggerEnter2D


_triggerOnExit

Set to true if Event should be triggered on OnTriggerExit2D


_triggerOnStay

Set to true if Event should be triggered on OnTriggerStay2D


OnTriggerStayHook

Mono Hook for OnTriggerEnter, OnTriggerExit and OnTriggerStay

Variables

_triggerOnEnter

Set to true if Event should be triggered on OnTriggerEnter


_triggerOnExit

Set to true if Event should be triggered on OnTriggerExit


_triggerOnStay

Set to true if Event should be triggered on OnTriggerStay


OnUpdateHook

Mono Hook for Update


VoidHook

Base class for all MonoHooks of type Void.


VoidGameObjectListener

Listener x 2 of type Void and GameObject. Inherits from AtomListener<Void, GameObject, VoidGameObjectAction, VoidGameObjectEvent, VoidGameObjectUnityEvent>.