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

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.

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

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