CreateChildNode

Node.CreateChildNode method (1 of 5)

Creates a child node

public Node CreateChildNode()

Return Value

The new child node.

Examples

The following code shows how to create a new child node under root node

Scene scene = new Scene();
Node node = scene.RootNode.CreateChildNode();
node.Entity = new Box();
scene.Save("output.fbx");

See Also


Node.CreateChildNode method (2 of 5)

Create a new child node with given node name

public Node CreateChildNode(string nodeName)
ParameterTypeDescription
nodeNameStringThe new child node’s name

Return Value

The new child node.

Examples

The following code shows how to create a new child node under root node

Scene scene = new Scene();
Node node = scene.RootNode.CreateChildNode("new node");
node.Entity = new Box();
scene.Save("output.fbx");

See Also


Node.CreateChildNode method (3 of 5)

Create a new child node with given entity attached

public Node CreateChildNode(Entity entity)
ParameterTypeDescription
entityEntityDefault entity attached to the node

Return Value

The new child node.

Examples

The following code shows how to create a new child node under root node

Scene scene = new Scene();
Node node = scene.RootNode.CreateChildNode(new Box());
scene.Save("output.fbx");

See Also


Node.CreateChildNode method (4 of 5)

Create a new child node with given node name

public Node CreateChildNode(string nodeName, Entity entity)
ParameterTypeDescription
nodeNameStringThe new child node’s name
entityEntityDefault entity attached to the node

Return Value

The new child node.

See Also


Node.CreateChildNode method (5 of 5)

Create a new child node with given node name, and attach specified entity and a material

public Node CreateChildNode(string nodeName, Entity entity, Material material)
ParameterTypeDescription
nodeNameStringThe new child node’s name
entityEntityDefault entity attached to the node
materialMaterialThe material attached to the node

Return Value

The new child node.

See Also