Skip to content

Add get_property_list to gdextension classes #665

Closed
@lilizoey

Description

@lilizoey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: registerRegister classes, functions and other symbols to GDScriptfeatureAdds functionality to the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions