Urho.Node.GetComponent Method

Return component by type. If there are several, returns the first.

Syntax

public Component GetComponent (StringHash type, Boolean recursive)

Parameters

type
The type of the component to lookup.
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 of type.  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