GvrEventExecutor
Wraps UnityEngine.EventSystems.ExecuteEvents
.
Summary
Also, exposes event delegates to allow global handling of events.
Inheritance
Inherits from: IGvrEventExecutor
Constructors and Destructors |
|
---|---|
GvrEventExecutor()
Initializes a new instance of the GvrEventExecutor class.
|
Properties |
|
---|---|
OnPointerClick
|
Adds or removes delegate functions for the
OnPointerClick event. |
OnPointerDown
|
Adds or removes delegate functions for the
OnPointerDown event. |
OnPointerEnter
|
Adds or removes delegate functions for the
OnPointerEnter event. |
OnPointerExit
|
Adds or removes delegate functions for the
OnPointerExit event. |
OnPointerUp
|
Adds or removes delegate functions for the
OnPointerUp event. |
OnScroll
|
Adds or removes delegate functions for the
OnScroll event. |
Public functions |
|
---|---|
EventDelegate(GameObject target, PointerEventData eventData)
|
delegate void
Delegate type for handling pointer events.
|
Execute< T >(GameObject target, BaseEventData eventData, ExecuteEvents.EventFunction< T > functor)
|
bool
Execute the specified target, eventData and functor.
|
ExecuteHierarchy< T >(GameObject root, BaseEventData eventData, ExecuteEvents.EventFunction< T > callbackFunction)
|
GameObject
Executes the hierarchy.
|
GetEventHandler< T >(GameObject root)
|
GameObject
Gets the event handler.
|
Properties
OnPointerClick
EventDelegate OnPointerClick
Adds or removes delegate functions for the OnPointerClick
event.
OnPointerDown
EventDelegate OnPointerDown
Adds or removes delegate functions for the OnPointerDown
event.
OnPointerEnter
EventDelegate OnPointerEnter
Adds or removes delegate functions for the OnPointerEnter
event.
OnPointerExit
EventDelegate OnPointerExit
Adds or removes delegate functions for the OnPointerExit
event.
Public functions
EventDelegate
delegate void EventDelegate( GameObject target, PointerEventData eventData )
Delegate type for handling pointer events.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
Execute< T >
bool Execute< T >( GameObject target, BaseEventData eventData, ExecuteEvents.EventFunction< T > functor )
Execute the specified target, eventData and functor.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Template Parameters |
|
||||||
Returns |
Returns
true if the method successfully executes, false otherwise. |
ExecuteHierarchy< T >
GameObject ExecuteHierarchy< T >( GameObject root, BaseEventData eventData, ExecuteEvents.EventFunction< T > callbackFunction )
Executes the hierarchy.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Template Parameters |
|
||||||
Returns |
The hierarchy.
|
GetEventHandler< T >
GameObject GetEventHandler< T >( GameObject root )
Gets the event handler.
Details | |||
---|---|---|---|
Parameters |
|
||
Template Parameters |
|
||
Returns |
The event handler.
|