Scene Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
A scene.
Derived from 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
Name | Description | |
---|---|---|
Constructors | ||
Scene() | Initializes a new instance of the Scene class. |
|
Fields | ||
Offset | An offset applied to all entities of the scene relative to it's parent scene. |
|
WorldMatrix | The absolute transform applied to all entities of the scene. |
|
Properties | ||
Children | The child scenes. |
|
Entities | The entities. |
|
Id | ||
Parent | The parent scene. |
|
Methods | ||
ToString() | ||
UpdateWorldMatrix() | Updates the world transform of the scene. |
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
Type | Description |
---|---|
Vector3 |
WorldMatrix
The absolute transform applied to all entities of the scene.
public Matrix WorldMatrix
Field Value
Type | Description |
---|---|
Matrix |
Remarks
This field is overwritten by the transform processor each frame.
Properties
Children
The child scenes.
public TrackingCollection<Scene> Children { get; }
Property Value
Type | Description |
---|---|
TrackingCollection<Scene> |
Entities
The entities.
public TrackingCollection<Entity> Entities { get; }
Property Value
Type | Description |
---|---|
TrackingCollection<Entity> |
Id
[DataMember(-10)]
[Display(null, null, Browsable = false)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Parent
The parent scene.
public Scene Parent { get; set; }
Property Value
Type | Description |
---|---|
Scene |
Methods
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
UpdateWorldMatrix()
Updates the world transform of the scene.
public void UpdateWorldMatrix()