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

type 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 = gameObject.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.