Node.GetChild
Contents
[
Hide
]GetChild(int)
Gets the child node at specified index.
public Node GetChild(int index)
| Parameter | Type | Description | 
|---|---|---|
| index | Int32 | Index. | 
Return Value
The child.
Examples
The following code shows how to get a child node at specified index.
Scene scene = Scene.FromFile("input.fbx");
var node = scene.RootNode.GetChild(0);
Console.WriteLine($"The first node of the file is {node.Name}");
See Also
- class Node
 - namespace Aspose.ThreeD
 - assembly Aspose.3D
 
GetChild(string)
Gets the child node with the specified name
public Node GetChild(string nodeName)
| Parameter | Type | Description | 
|---|---|---|
| nodeName | String | The child name to find. | 
Return Value
The child.
Examples
The following code shows how to get a child node with specified name
Scene scene = Scene.FromFile("input.fbx");
var node = scene.RootNode.GetChild("box");
Console.WriteLine($"The box node's translation is {node.Transform.Translation}");
See Also
- class Node
 - namespace Aspose.ThreeD
 - assembly Aspose.3D