GvrEventExecutor

Wraps UnityEngine.EventSystems.ExecuteEvents.

Summary

Also, exposes event delegates to allow global handling of events.

Inheritance

Inherits from: IGvrEventExecutor

Constructors and Destructors

GvrEventExecutor()

Properties

OnPointerClick
EventDelegate
Fired when a Click occurs on any object.
OnPointerDown
EventDelegate
OnPointerEnter
EventDelegate
OnPointerExit
EventDelegate
OnPointerUp
EventDelegate
OnScroll
EventDelegate

Public functions

EventDelegate(GameObject target, PointerEventData eventData)
delegate void
Execute< T >(GameObject target, BaseEventData eventData, ExecuteEvents.EventFunction< T > functor)
bool
ExecuteHierarchy< T >(GameObject root, BaseEventData eventData, ExecuteEvents.EventFunction< T > callbackFunction)
GameObject
GetEventHandler< T >(GameObject root)
GameObject

Properties

OnPointerClick

EventDelegate OnPointerClick

Fired when a Click occurs on any object.

OnPointerDown

EventDelegate OnPointerDown

OnPointerEnter

EventDelegate OnPointerEnter

OnPointerExit

EventDelegate OnPointerExit

OnPointerUp

EventDelegate OnPointerUp

OnScroll

EventDelegate OnScroll

Public functions

EventDelegate

delegate void EventDelegate(
  GameObject target,
  PointerEventData eventData
)

Execute< T >

bool Execute< T >(
  GameObject target,
  BaseEventData eventData,
  ExecuteEvents.EventFunction< T > functor
)

ExecuteHierarchy< T >

GameObject ExecuteHierarchy< T >(
  GameObject root,
  BaseEventData eventData,
  ExecuteEvents.EventFunction< T > callbackFunction
)

GetEventHandler< T >

GameObject GetEventHandler< T >(
  GameObject root
)

GvrEventExecutor

 GvrEventExecutor()