User Tools

Site Tools


wiki:essential_functions

Essential functions

OnAwake()

  • Description: Called when the actor is created (Before OnStart)

OnStart()

  • Description: Called when the actor is created (After OnAwake)

OnEnable()

  • Description: Called when the actor gets enabled

OnDisable()

  • Description: Called when the actor gets disabled

OnDestroy()

  • Description: Called when the actor is destroyed

OnUpdate(number)

  • Description: Called every gameplay frame (Before OnLateUpdate)
  • Signature: (deltaTime: number) : nil

OnFixedUpdate(number)

  • Description: Called every physics frame (at most 60 times per second)
  • Signature: (deltaTime: number) : nil

OnLateUpdate(number)

  • Description: Called every gameplay frame (After OnUpdate)
  • Signature: (deltaTime: number) : nil

OnCollisionEnter(PhysicalObject)

  • Description: Called when the actor starts colliding with another actor
  • Signature: (other: PhysicalObject): nil

OnCollisionStay(PhysicalObject)

  • Description: Called while the actor is colliding with another actor
  • Signature: (other: PhysicalObject): nil

OnCollisionExit(PhysicalObject)

  • Description: Called when the actor stops colliding with another actor
  • Signature: (other: PhysicalObject): nil

OnTriggerEnter(PhysicalObject)

  • Description: Called when the actor enter a trigger zone
  • Signature: (other: PhysicalObject): nil

OnTriggerStay(PhysicalObject)

  • Description: Called while the actor is in a trigger zone
  • Signature: (other: PhysicalObject): nil

OnTriggerExit(PhysicalObject)

  • Description: Called when the actor exits a trigger zone
  • Signature: (other: PhysicalObject): nil
wiki/essential_functions.txt · Last modified: 2019/07/13 15:29 by admin