Node.GetChild

GetChild(int)

Gets the child node at specified index.

public Node GetChild(int index)
ParameterTypeDescription
indexInt32Index.

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


GetChild(string)

Gets the child node with the specified name

public Node GetChild(string nodeName)
ParameterTypeDescription
nodeNameStringThe 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