-
-
Notifications
You must be signed in to change notification settings - Fork 253
Closed
Labels
c: registerRegister classes, functions and other symbols to GDScriptRegister classes, functions and other symbols to GDScriptfeatureAdds functionality to the libraryAdds functionality to the library
Description
To dynamically update properties in Godot you must override get_property_list (_get_property_list in gdscript). This is a special-cased virtual method that doesn't show up along normal virtual methods, so we do not support this currently.
This method however does require returning a pointer to a property list, and there isn't a good way to get the length back when godot asks us to free it. See godotengine/godot-proposals#9462 for an upstream issue that proposes a fix to this feature.
#621 is a PR that tried to implement this initially, however im closing that for now and opening this issue instead to track that.
Additionally property_can_revert and property_get_revert should also be implemented so people can set custom reverts for properties.
Nohac
Metadata
Metadata
Assignees
Labels
c: registerRegister classes, functions and other symbols to GDScriptRegister classes, functions and other symbols to GDScriptfeatureAdds functionality to the libraryAdds functionality to the library