Node.Entity

Node.Entity property

Gets or sets the first entity attached to this node, if sets, will clear other entities.

public Entity Entity { get; set; }

Property Value

The node entity.

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