Component.GetComponentInChildren
GetComponentInChildren(t: Type): Component;
Component GetComponentInChildren(Type t);
def GetComponentInChildren(t as Type) as Component
Parameters

t The type of Component to retrieve.
Description

Returns the component of Type type in the GameObject or any of its children using depth first search.

Only active components are returned.
	var script : ScriptName; 
	script = GetComponentInChildren(ScriptName);
	script.DoSomething ();
no example available in C#
no example available in Boo
GetComponentInChildren(): T;
T GetComponentInChildren();
def GetComponentInChildren() as T
Description

Generic version. See the Generic Functions page for more details.