You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for to-be-closed Variant variables in Lua 5.4+ (not supported in LuaJIT).
Example:
dolocalfile<close>=FileAccess:open(...)
-- `file` is automatically freed at the end of the scope,-- closing the opened file without waiting for garbage collectionend
Fixed
LuaScripts have their _init method called when instantiated from scene
Calls to Variant.duplicate now correctly trigger methods in objects that support it, fixing calls to Node.duplicate and Resource.duplicate for example
Node metadata set in the inspector is now correctly set as metadata instead of regular raw data
Force a full garbage collection on LuaScriptLanguage's state to make sure all Variants are collected, releasing cyclic references from LuaScriptInstance/LuaScript to the LuaState itself.
Make sure owner Objects inherit from the class extended by Lua scripts.
E.g.: attaching a Lua script that extends RefCounted to Node objects now gives an error
Support for loading LuaScripts using valid uid:// paths in builds
Changed
Godot 4.5 is now the minimum version necessary to use this addon
Updated godot-cpp to 10.0.0-rc1 using api_version=4.6
LuaScriptInstance's owner object is passed as self to methods instead of the data table.
LuaScriptInstance now uses a Dictionary for storing data instead of a Lua table.