Skip to content
Version 2.11.0
↓ Get the launcher

ILua.DoString method

Runs chunk in the game’s main Lua state on the calling (main) thread. Fire-and-forget: no return value. Wrap the chunk body in pcall(function() ... end) so a Lua-side error cannot propagate back through the interop trampoline. No-op until Ready.

public void DoString(string chunk)
parameter description
chunk A complete Lua chunk.