Click or drag to resize
AB4D logo

SceneNodeForEachChildNodeT Method

ForEachChildNode calls the childNodeFoundAction for each SceneNode of type T that is find in the hierarchy of the child SceneNodes starting at this SceneNode's ChildNodes.

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public void ForEachChildNode<T>(
	Action<T> childNodeFoundAction,
	bool enumerateOnlyOneChildrenLevel = false
)
where T : SceneNode

Parameters

childNodeFoundAction  ActionT
Action that is called for each found SceneNode (the found SceneNode is passed as parameter)
enumerateOnlyOneChildrenLevel  Boolean  (Optional)
when false (by default) then all children of children in all hierarhy levels are enumerated; when true, then only SceneNodes from this.ChildNodes collection will be enumerated

Type Parameters

T
Type for which the childNodeFoundAction is called (must be derived from SceneNode)
See Also