Class Scene
A scene.
[DataContract("Scene")]
[ContentSerializer(typeof(DataContentSerializerWithReuse<Scene>))]
[DataSerializerGlobal(typeof(ReferenceSerializer<Scene>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
public sealed class Scene : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder, IIdentifiable
- Inheritance
-
Scene
- Implements
- Inherited Members
- Extension Methods
Constructors
Scene()
Initializes a new instance of the Scene class.
public Scene()
Fields
Offset
An offset applied to all entities of the scene relative to it's parent scene.
public Vector3 Offset
Field Value
WorldMatrix
The absolute transform applied to all entities of the scene.
public Matrix WorldMatrix
Field Value
Remarks
This field is overwritten by the transform processor each frame.
Properties
Children
The child scenes.
public TrackingCollection<Scene> Children { get; }
Property Value
Entities
The entities.
public TrackingCollection<Entity> Entities { get; }
Property Value
Id
Gets the id of this instance
[DataMember(-10)]
[Display(null, null, Browsable = false)]
public Guid Id { get; set; }
Property Value
Parent
The parent scene.
public Scene Parent { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
UpdateWorldMatrix()
Updates the world transform of the scene.
public void UpdateWorldMatrix()