Click or drag to resize
DigitalRuneSceneNodeChildren Property
Gets or sets the children of this scene node.

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public SceneNodeCollection Children { get; set; }

Property Value

Type: SceneNodeCollection
The collection of children of the scene node. The default value is - see remarks. Null entries are not allowed in the children collection.
Remarks

The property is by default to minimize the memory consumption of the scene node. If the value is , a new SceneNodeCollection needs to be set before any scene nodes can be attached to the current node.

Examples
The following example shows how to attach a scene node to another node.
C#
var node = new SceneNode();
var childNode = new SceneNode();

// First initialize the Children collection. (The property is null by default.)
node.Children = new SceneNodeCollection();

// Now attach the childNode to node.
node.Children.Add(childNode);
See Also