Creates an instance of SceneEntity. *
The name of the entity. *
Optionaltransform: Transform = ...The transform component.
Protected_Protected_Protected_A flag indicating if the entity is active and should be updated. *
ProtectedbehavioursA collection of behaviours attached to the entity. * *
ProtecteddestroyedA flag indicating if the entity has been destroyed. * *
The type of the entity (e.g., STATIC, DYNAMIC). *
The scene to which this entity belongs. *
A flag indicating if the entity should be rendered. *
A tag used for identifying or grouping entities. *
The transform component of the entity. *
A flag to determine if the entity should update in the editor. *
StaticclassAdds a new behaviour to the entity. *
The behaviour to add. *
Creates a deep copy of the current SceneEntity instance. *
ProtecteddeserializeDestroys the entity, cleaning up all attached behaviours. *
Draws the entity. *
Deserializes the entity'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. *
Initializes the entity and all of its behaviours. *
Removes a behaviour from the entity. *
The behaviour to remove. *
ProtectedserializeSerializes the entity's state to a JSON object. * *
Updates the entity and its behaviours. *
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. *
The base class for all entities within the engine. It manages a transform, a collection of behaviours, and the entity's state within a scene. *