GameObject.GetComponentInChildren
GetComponentInChildren(type: Type): Component;
Component GetComponentInChildren(Type type);
def GetComponentInChildren(type as Type) as Component
Parameters

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