UnitClass.client_onUpdate

Called every frame.

Kind: Callback

Environments: Game

Game

Callback side: Client

UnitClass:client_onUpdate( deltaTime )

Open the full Game reference

During a frame update, graphics, animations and effects are updated.

Warning: Because of how frequent this event is called, the game's frame rate is greatly affected by the amount of code executed here. For any non-graphics related code, consider using client_onFixedUpdate instead. If the event is not in use, consider removing it from the script. (Event callbacks that are not implemented will not be called.)

Parameters:

Name Type Description
self table The class instance.
deltaTime number Delta time since the last frame.