Protected_Protected_A flag indicating if the behaviour has been initialized.
Protected_Protected_Indicates whether the behaviour is currently active.
An inactive behaviour will not have its update method called.
The parent entity to which this behaviour is attached.
The render layer this behaviour belongs to. This is used to determine the rendering order of the entity.
Gets the transform component of the parent entity. This provides easy access to the position, rotation, and scale of the entity.
A lifecycle method called after the main draw call. *
A lifecycle method called after the main update loop. *
A lifecycle method called before the main draw call. *
A lifecycle method called before the main update loop. *
The time elapsed since the last frame in milliseconds. *
Creates a clone of the behaviour. This method should be overridden by subclasses to implement deep cloning of the behaviour.
ProtecteddeserializeCleans up resources used by the behaviour. This method is called when the behaviour is about to be destroyed.
Draws any visual representation of the behaviour. This is often used for debugging purposes, such as drawing bounding boxes or other gizmos.
Deserializes the behaviour's state from a JSON object. This is used for loading a scene or entity state.
The JSON object to deserialize from.
ProtectedgetInitializes the behaviour. This method is called once when the behaviour is first added to an entity.
ProtectedserializeSerializes the behaviour's state to a JSON object. This is used for saving the scene or entity state.
Updates the behaviour every frame. This method is called on every frame for active behaviours.
The time elapsed since the last frame in seconds.
Updates the behaviour specifically for editor mode. This method is called on every frame when the engine is in editor mode.
The time elapsed since the last frame in seconds.
An interface for behaviours that require pre and post-update and draw hooks. {EntityBehaviour}