godot-docs icon indicating copy to clipboard operation
godot-docs copied to clipboard

The GDScript Exports docs need to cover `property_can_revert` and `property_get_revert` too.

Open willnationsdev opened this issue 5 years ago • 1 comments

Your Godot version: 3.2 stable

Issue description: If you create runtime export variables via the _get, _set, and _get_property_list methods, then there is no clear way to define a default value for reverting any of the generated properties. The Inspector doesn't know that it can revert them.

The Inspector does provide overrides for forcibly determining true/false if a property can be overridden and a Variant response for what the reverted value should be via the property_can_revert and property_get_revert functions, but these methods are undocumented. I have covered their exclusion from the documentation in godotengine/godot#43078.

URL to the documentation page (if already existing): https://docs.godotengine.org/en/stable/getting_started/scripting/gdscript/gdscript_exports.html#advanced-exports

willnationsdev avatar Oct 25 '20 17:10 willnationsdev

Done for 3.4/3.5 with #6043, but this is still needed for 4.0. See relevant discussion in that PR.

akien-mga avatar Aug 08 '22 08:08 akien-mga