Scene.Scene

Scene()

Initializes a new instance of the Scene class.

public Scene()

See Also


Scene(Entity)

Initializes a new instance of the Scene class with an entity attached to a new node.

public Scene(Entity entity)
ParameterTypeDescription
entityEntityThe initial entity that attached to the scene

Examples

The following code shows how to create a Scene directly from an Entity:

var scene = new Scene(new Box());

See Also


Scene(Scene, string)

Initializes a new instance of the Scene class as a sub-scene.

public Scene(Scene parentScene, string name)
ParameterTypeDescription
parentSceneSceneThe parent scene.
nameStringScene’s name.

See Also