Click or drag to resize
Ab4d.SharpEngine logo

GroupNodeGetChildT(String, Int32) Method

Searches the GroupNode's children and their children and returns the SceneNode of type T and with the specified name. Name can contain '*' that acts as a wildcard. In this case the first SceneNode that matches the wildcard is returned. The following wildcard usages are valid: *, *XYZ, XZY*, *XYZ*, XY*Z. If the scene node is not found then null is returned. 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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public T GetChild<T>(
	string? name = null,
	int searchDepth = 2147483647
)
where T : SceneNode

Parameters

name  String  (Optional)
Name of the SceneNode to return. Name can contain '*' that acts as a wildcard. In this case the first SceneNode that matches the wildcard is returned. 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

[Missing <typeparam name="T"/> documentation for "M:Ab4d.SharpEngine.SceneNodes.GroupNode.GetChild``1(System.String,System.Int32)"]

Return Value

T
found SceneNode or null if not found
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.GroupNode.GetChild``1(System.String,System.Int32)"]

See Also