Urho.Node.GetComponent<T> Method

Return the component of the specified T parameters. If there are several, returns the first.

Syntax

public T GetComponent<T> (Boolean recursive)
where T : Component

Type Parameters

T

Parameters

recursive
If true, this performs a recursive search on the child nodes of this node.

Returns

The component of the specified type, if found, otherwise null.

Remarks

This method searches the current node for a component with an urho component type T.  This will either search only the components attached to this node if recursive is set to false, or it will search for the component recursive on all the children nodes attached to this node.

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0