Urho.Node.GetChildrenWithComponent<T> Method

Returns children nodes that have a specific component attached to it.

Syntax

public Node[] GetChildrenWithComponent<T> (Boolean recursive)
where T : Component

Type Parameters

T

Parameters

recursive
If true, the search includes nested children, otherwise the search is done only on the immediate children of this node.

Returns

Array containing the nodes that have the specified component, or an empty array if there are none.

Remarks

Returns only exact components of T type. Ignores subclasses of T, for example, GetChildrenWithComponent<StaticModel>() won’t return nodes with AnimatedModel components (AnimatedModels is a subclass of StaticModel).

Requirements

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