Description
Changelog
Reviews (0)
Extension for using the Lua programming language in Godot 4.5+
With this addon, you can program your game or application directly in Lua. You can also create sandboxed Lua states for external modding/scripting support, as many as necessary.
Features
- Create Godot scripts directly in Lua, making it possible to use Lua as an alternative to GDScript or C#
- Create additional Lua states for external modding/scripting support, as many as necessary
- Manage Lua tables, functions and coroutines directly from GDScript, C# or any other scripting language in Godot
- Select which Lua libraries and Godot APIs will be available per Lua state, making sandboxing easier:
- Lua libraries are the same as Lua/C, like
base,packageandiolibraries - Godot APIs:
- Create and manipulate Variant values
- Instantiate objects and access class constants
- Access singleton objects by name
- Global utility functions, like Godot's
print_rich,lerpandis_same. Also adds anawaitfunction that mimics GDScript'sawaitkeyword (only supported when running in a coroutine). - Global enums, like
OK,TYPE_STRINGandSIDE_LEFT - Patch Lua
package.searchers,require,loadfileanddofileto accept paths relative tores://anduser://
- Lua libraries are the same as Lua/C, like
- Editor plugin with Lua REPL for testing out Lua snippets
- Choose between Lua 5.4 or LuaJIT v2.1 runtimes (distributed as separate addons)
- Note: LuaJIT does not support WebAssebly, so Lua 5.4 is always used in Web platform
Changelog for version 0.8.2
No changelog provided for this version.