Construct a new scene.
Map of entities in the scene where the key is the entity id and the value is the entity object.
Add an entity to the scene.
Entity to add.
Called before start.
Create a new entity and add it to the scene.
Name of the entity.
The created entity.
Remove an entity from the scene.
Entity to remove.
Called every frame.
Step between the previous and current frame. Used for interpolation.
Get all entities in the scene.
Array of all entities in the scene.
Get all entities with the given name.
Name of the entities.
Array of all entities with the given name.
Get an entity by its id.
Id of the entity.
The entity with the given id or undefined if no entity with the given id was found.
Get an entity by its name.
Name of the entity.
The entity with the given name or undefined if no entity with the given name was found.
Initialize the scene.
Called every tick after the update.
Called after awake.
Called every tick.
Generated using TypeDoc
The scene class is the base class for all scenes.