Class Script

Inheritance Relationships

Base Type

Class Documentation

class Script : public Cacao::Component

A component that.

Public Functions

inline virtual void OnEnable() override

Runs when the script is enabled or when the owning Actor becomes active if the script was already enabled.

inline virtual void OnDisable() override

Runs when the script is disabled or when the owning Actor becomes inactive if the script was already enabled.

inline virtual void OnDynTick(time::fseconds timestep)

Runs each dynamic tick that the script is enabled and in an active World.

Most logic should be executed here.

Parameters:

timestep – The time in seconds since the last dynamic tick (not necessarily when the script was executed)

inline virtual void OnFixedTick()

Runs each fixed tick that the script is enabled and in an active World.

Warning

Avoid doing too much complicated stuff here to avoid fixed tick slowdowns.

Protected Functions

Script()