Basics

Script lifecycle, logging, and runtime information.

Core behavior shared by every Lua mod.

Available API

APIDescription
LifecyclePersistent-script callbacks and cleanup points.
ue.logWrite debug, info, warning, and error messages.
ue.runtime.infoRead the API version and enabled features.

Runtime rules

  • Scripts run on the Unreal game thread.
  • ue and unlocked are aliases for the same API table.
  • Standard libraries: base, coroutine, table, string, math, and UTF-8.
  • Unavailable: dofile, loadfile, load, collectgarbage, io, os, package, and debug.

On this page