IGvrEventExecutor
Provides an interface for executing events for IEventSystemHandler
.
Summary
Inheritance
Direct Known Subclasses:GvrEventExecutor
Public functions |
|
---|---|
Execute< T >(GameObject target, BaseEventData eventData, ExecuteEvents.EventFunction< T > functor)
|
bool
Execute the event of type
T : IEventSystemHandler on the game object. |
ExecuteHierarchy< T >(GameObject root, BaseEventData eventData, ExecuteEvents.EventFunction< T > callbackFunction)
|
GameObject
Recurse up the hierarchy calling
Execute until there is a game object that can handle the event. |
GetEventHandler< T >(GameObject root)
|
GameObject
Traverse the object hierarchy starting at root, and return the game object which implements the event handler of type
T . |
Public functions
Execute< T >
bool Execute< T >( GameObject target, BaseEventData eventData, ExecuteEvents.EventFunction< T > functor )
Execute the event of type T : IEventSystemHandler
on the game object.
The event will be executed on all components on the game object that can handle it.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Template Parameters |
|
||||||
Returns |
A value indicating whether the delegate successfully executed.
|
ExecuteHierarchy< T >
GameObject ExecuteHierarchy< T >( GameObject root, BaseEventData eventData, ExecuteEvents.EventFunction< T > callbackFunction )
Recurse up the hierarchy calling Execute
until there is a game object that can handle the event.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
||||||
Template Parameters |
|
||||||
Returns |
GameObject Game object that handled the event.
|
GetEventHandler< T >
GameObject GetEventHandler< T >( GameObject root )
Traverse the object hierarchy starting at root, and return the game object which implements the event handler of type T
.
Note:Traversal is performed upwards from the target object, not down.
Details | |||
---|---|---|---|
Parameters |
|
||
Template Parameters |
|
||
Returns |
The event handler.
|