onUpdate

Why ?

onUpdate function is used to update values of GameObject.

When ?

This function is called each frame of your game.

Prototype

//hpp
void onUpdate() override;
//cpp
void KapEngine::MyGame::MyComponent::onUpdate() {
    //do what you want
}

Last updated