A GDExtension that adds Luau C/C++ API bindings to GDScript (+ some extras)
GDLuau is for in-game scripting / UGC / modding. (This is not a replacement for or an alternative to GDScript.)
Luau API closely follows Lua 5.1 API, you can find the manual here.
For coding in lua/luau take a look at the "Getting Started" section on luau-lang.org.
- Full C/C++ API excluding userdata
- Pushing/Pulling normal Callables (lambda Callables aren't supported)
- Pushing/Pulling Objects (Node / RefCounted) (as userdata)
- Pushing/Pulling Godot Arrays and Dictionaries
- Pushing/Pulling Godot Vector3s as Luau vectors
- Custom print implementation that emits a signal
- lua_loadstring, lua_dostring in GDScript (were "missing" in Luau)
- Clone the repo
- Run
scons -j=4 platform=<platform> - A test project is included in the repo
(binaries are in
res://addons/gdluau/bin)
