Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EventSystems.ExecuteEvents.ExecuteHierarchy

public static function ExecuteHierarchy(root: GameObject, eventData: BaseEventData, callbackFunction: EventFunction<T>): GameObject;

Parameters

root Start GameObject.
eventData Data associated with the Executing event.
callbackFunction Function to execute on the gameObject components.

Returns

GameObject GameObject that handled the event.

Description

Recurse up the hierarcy calling Execute<T> untill there is a GameObject that can handle the event.