Node.CreateChildNode

CreateChildNode()

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


CreateChildNode(string)

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


CreateChildNode(Entity)

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


CreateChildNode(string, Entity)

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


CreateChildNode(string, Entity, Material)

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