t | The type of Component to retrieve. |
Returns the component of Type type
in the GameObject or any of its children using depth first search.
var script : ScriptName; script = GetComponentInChildren(ScriptName); script.DoSomething ();
no example available in C#
no example available in Boo
Generic version. See the Generic Functions page for more details.