Lua API

Lua API reference for Unreal Engine scripting in UnlockedEditor.

Use ue to find Unreal objects, call reflected functions, react to game events, bind input, build UMG interfaces, draw game overlays, call web APIs, capture microphone input, and play audio.

ue and unlocked are aliases. This reference documents API 2.8.0, shipped with runtime 4.0.1.

Quick start

local player = assert(ue.get_player_character())

ue.input.bind("F3", function()
    player:Jump()
end)

Scripts run in a sandboxed Lua 5.5 environment on the Unreal game thread. See Basics for the lifecycle callbacks and the runtime rules.

UObject and container proxies are weak references. Check :is_valid() before reusing one after map travel or object destruction.

Explore the API

On this page