lua-gdextension
lua-gdextension copied to clipboard
Extension for using the Lua programming language in Godot 4.1.2+
In `to_lua`, we should only unpack `LuaObject`s to the `LuaState` that they belong. In case of accessing them in a different `LuaState`, keep them wrapped in a `Variant` to avoid...
One way for calling methods in tables is getting the function out of it, and then calling the function manually passing the table as first argument. We could have an...
It could also be exposed as a Signal for other objects to be notified when Lua panics.
In Lua 5.4, there is a warning mechanism that we could implement using Godot functions like `push_warning`. Note: don't forget to wrap code in `#if LUA_VERSION_NUM >= 504` blocks.
We should be able to `require` Lua modules relative to `res://` folder. An approach [similar to Lua PluginScript's](https://github.com/gilzoide/godot-lua-pluginscript/blob/main/src/lua_package_extras.lua#L37-L126), using Godot's FileAccess class for `searchpath`, should work. Question: Should this be...
Heys guys, I was trying a lot of sandboxes for godot to make a modding API for a project but I hit some roadblocks in the way. At the moment,...