Skip to main content

Settings

ZLua/Settings... opens Project Settings → ZLua. Values are stored in ProjectSettings/ZLua.asset. Field contract: 14-SETTINGS.

Fields​

UIWhat it does
EnableWhen off, ZLua is not enabled for the current build target
Lua Version IdAn id such as lua-5.5.0, luajit-2.1, or luau-0.743. Luau is on the official luau branch. Changing it requires a new Install — see Install and Lua versions
MarshalAs Xml PathsMarshal rules for assemblies you cannot edit. See LuaMarshalAs
Lua Alias Xml PathsSame idea, for method renames. See LuaAlias
Lua Extension Xml PathsSame idea, for attaching extension methods to a target type. See Extension methods
Unity OptimizationsOn by default. Enables Unity API optimizations shipped in the package; currently GetComponent. See Unity optimizations
Enable DebuggerEditor only. EmmyLua — see Debugger
Debugger PortDefault 9966
Debugger Wait IDEWhen checked, blocks the main thread until the IDE attaches

Do not use the three XML path lists for hot-update assemblies; use Attributes there.

After changing MarshalAs / Alias / Extension paths, or toggling Unity Optimizations, the next Editor initialize loads the new lists. Before an Il2Cpp build, run ZLua/Generate/All again.