Protected_Protected_An array of all entities within the scene. * *
Protected_Protected_Protected_A flag indicating if the entity is active and should be updated. *
A collection of behaviours specific to the scene. *
The background color of the scene, in RGB format. *
ProtecteddestroyedA flag indicating if the entity has been destroyed. * *
ProtectedellapsedThe total elapsed time since the scene started. * *
The type of the entity, specifically set to SCENE. * *
ProtectedglThe WebGL2 rendering context. * *
A flag indicating whether the scene is in edit mode (inside editor). *
A flag indicating whether the scene's update loop is running. *
The scene to which this entity belongs. *
A flag indicating if the entity should be rendered. *
The tag for the scene entity. * *
The transform component of the entity. *
A flag to determine if the entity should update in the editor. *
Gets all light entities in the scene. * *
Gets the list of all entities in the scene. * *
StaticclassAdds a new scene-specific behaviour. * *
The behaviour to add. *
Creates a deep copy of the current SceneEntity instance. *
ProtecteddeserializeDestroys the scene and all entities and behaviours within it. * *
Draws the scene, including clearing the buffer and rendering all visible entities. * *
Deserializes the scene's state from a JSON object. * *
The JSON object to deserialize from. *
ProtectedgetRetrieves the first behaviour of a specific type from the collection. *
The constructor function of the type to filter by. *
Retrieves all behaviours of a specific type from the collection. *
The constructor function of the type to filter by. *
Retrieves an entity by its name. *
The name of the entity to find. *
Retrieves an entity by its unique identifier. *
The UUID of the entity to find. *
Retrieves an entity by Classname. *
Retrieves entities of a specific type from the collection. *
The constructor function of the type to filter by. *
Retrieves all entities with a specific tag. *
The tag to filter by. *
Retrieves all entity by its Classname. *
The name of the entity class to find. *
Initializes all entities within the scene. * *
Removes a behaviour from the entity. *
The behaviour to remove. *
Removes an entity from the scene. *
The entity to remove. *
ProtectedserializeSets the WebGL2 rendering context for the scene and its rendering behaviours. *
The WebGL2 rendering context. *
Serializes the scene's state, including all entities and their mesh data, to a JSON object. * *
Updates the state of the scene and all its active entities. * *
The elapsed time in seconds since the last update. *
StaticinstanciateCreates a new SceneEntity instance with a given name and an optional transform.
Optionalname: string = 'Entity'The name of the new entity. *
Optionaltransform: TransformThe transform for the entity. A new one is created if none is provided. *
Represents a scene in the 3D world, acting as a container for entities and managing the main game loop operations like update and draw. *