Click or drag to resize
Ab4d.SharpEngine logo

GroupNodeCollectAllChildrenT Method

Searches the GroupNode's children and their children and adds the found SceneNodes of type T to the specified children List. When name is specified, then SceneNodes with that name are returned. 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 search depth can be optionally specified by setting the searchDepth parameter (value 0 means searching only the immediate children of this GroupNode).

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public void CollectAllChildren<T>(
	List<T> children,
	string? name = null,
	int searchDepth = 2147483647
)
where T : SceneNode

Parameters

children  ListT
List of SceneNodes of type T where the found SceneNodes are added
name  String  (Optional)
Name of the SceneNodes to add to the returned List. 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  (Optional)
optional search depth (value 0 means searching only the immediate children of this GroupNode). Default value is Int.MaxValue.

Type Parameters

T

Return Value

List of SceneNodes of type T
See Also