Table of Contents

Class Scene

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

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

Vector3

WorldMatrix

The absolute transform applied to all entities of the scene.

public Matrix WorldMatrix

Field Value

Matrix

Remarks

This field is overwritten by the transform processor each frame.

Properties

Children

The child scenes.

public TrackingCollection<Scene> Children { get; }

Property Value

TrackingCollection<Scene>

Entities

The entities.

public TrackingCollection<Entity> Entities { get; }

Property Value

TrackingCollection<Entity>

Id

Gets the id of this instance

[DataMember(-10)]
[Display(null, null, Browsable = false)]
public Guid Id { get; set; }

Property Value

Guid

Parent

The parent scene.

public Scene Parent { get; set; }

Property Value

Scene

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()