Kap Engine Wiki
  • KapEngine
    • Getting Started
    • Changelog
      • Release 1.2
      • Release 1.1
      • Release 1.0
    • Tests
    • How it works ?
    • On what are we work on ?
  • USER MANUAL
    • Transform
      • Position
      • Rotation
      • Scale
      • Parents
    • Component
      • What is it ?
      • Create new one
      • checkComponentValidity
      • onAwake
      • onStart
      • onUpdate
      • onFixedUpdate
      • onDisplay
      • onDestroy [EVENT]
      • onGameQuit [EVENT]
      • onDisable [EVENT]
      • onEnable [EVENT]
      • onMouseEnter [EVENT]
      • onMouseStay [EVENT]
      • onMouseExit [EVENT]
      • onTriggerEnter [EVENT]
      • onTriggerStay [EVENT]
      • onTriggerExit [EVENT]
      • onSceneChanged [EVENT]
    • GameObject
      • What is it ?
      • Create new one
      • Useful functions
    • Scene
      • Getting started
      • Create new one
      • Add new GameObject
    • Graphical libraries
      • What is it ?
    • Input
      • Keys
      • Axis
      • getInput
    • Mouse
      • getMouse
    • Animations
      • Animator
        • What is it?
        • Create Animator
        • Add Aniation
        • Links
      • Animation
        • System
        • Functions
    • UI
      • Canvas
      • Image
      • Text
      • UiFactory
    • Debug
      • Macros
      • Class Debug
    • Tools
      • Color
      • Rectangle
      • Vectors
    • Utils
      • Dictionary
      • Type
      • Platform
    • Versioning
  • Game Example
    • Game
      • How directory is composed ?
  • Community
    • FAQ
    • KapMirror
    • KapUI
    • KapRaylib
Powered by GitBook
On this page
  • Why ?
  • When ?
  • Prototype

Was this helpful?

  1. USER MANUAL
  2. Component

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
}
PreviousonStartNextonFixedUpdate

Last updated 2 years ago

Was this helpful?