|
GroupNodeForEachChildT(String, Int32, Matrix4x4, ActionT, Matrix4x4) Method |
Searches the GroupNode's children and their children and executes the specified Action for all SceneNodes of type T 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.
The Action gets SceneNode of type T and world transformation Matrix4x4 as parameter.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public void ForEachChild<T>(
string? name,
int searchDepth,
Matrix4x4 parentTransformMatrix,
Action<T, Matrix4x4> childNodeFoundAction
)
where T : SceneNode
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)
- parentTransformMatrix Matrix4x4
- initial transformation as Matrix4x4
- childNodeFoundAction ActionT, Matrix4x4
- Action to executed
Type Parameters
- T
See Also