Click or drag to resize
Ab4d.SharpEngine logo

GroupNodeForEachChild(String, Int32, ActionSceneNode) Method

Searches the GroupNode's children and their children and executes the specified Action for all SceneNodes with the specified name. Name can contain '*' that acts as a wildcard to match multiple SceneNode names. The following wildcard usages are valid: *, *XYZ, XZY*, *XYZ*, XY*Z.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public void ForEachChild(
	string? name,
	int searchDepth,
	Action<SceneNode> childNodeFoundAction
)

Parameters

name  String
Name of the SceneNodes. Name can contain '*' that acts as a wildcard. In this case the first SceneNode that matches the wildcard are added. The following wildcard usages are valid: *, *XYZ, XZY*, *XYZ*, XY*Z.
searchDepth  Int32
search depth (value 0 means searching only the immediate children of this GroupNode)
childNodeFoundAction  ActionSceneNode
Action to executed
See Also