Table of Contents

Enum LunyEngineLifecycleEvents

Namespace
Luny
Assembly
Luny.dll

LunyScript lifecycle events.

[Flags]
public enum LunyEngineLifecycleEvents

Fields

OnEngineHeartbeat = 16

Runs in sync with engine's "fixed update" or "physics processing" event.

OnEngineLateUpdate = 64

Runs in sync with engine's "late update" event. Where unsupported (Godot) the native engine adapter calls this at the end of the engine's update event.

OnEnginePostUpdate = 8

Runs at the end of a frame, after late update.

OnEnginePreUpdate = 4

Runs at the beginning of a frame, before update and fixed step.

OnEngineSceneLoaded = 512
OnEngineSceneUnloaded = 256
OnEngineShutdown = 2

Runs once when application (runtime player) exits.

OnEngineStartup = 1

Runs once when application (runtime player) launches. Does not re-run when loading scenes.

OnEngineUpdate = 32

Runs in sync with engine's "update/process" event.

OnObjectCreated = 1024
OnObjectDestroyed = 2048