|
GroupNodeGetChild(String, Int32) Method |
Searches the GroupNode's children and their children and returns the SceneNode 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.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public SceneNode? GetChild(
string? name,
int searchDepth = 2147483647
)
Parameters
- name String
- 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.
Return Value
SceneNodefound SceneNode or null if not found
See Also