Component.GetComponentInChildren
GetComponentInChildren(t: Type): 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 ();
GetComponentInChildren(): T;
Description

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