| SceneNodeChildren Property |
Gets or sets the children of this scene node.
Namespace: DigitalRune.Graphics.SceneGraphAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public SceneNodeCollection Children { get; set; }
Public Property Children As SceneNodeCollection
Get
Set
public:
virtual property SceneNodeCollection^ Children {
SceneNodeCollection^ get () sealed;
void set (SceneNodeCollection^ value) sealed;
}
abstract Children : SceneNodeCollection with get, set
override Children : SceneNodeCollection with 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.
var node = new SceneNode();
var childNode = new SceneNode();
node.Children = new SceneNodeCollection();
node.Children.Add(childNode);
See Also