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

Add section about default values (`property_can_revert` and `property_get_revert`) under GDScript exports

Open SimonLarsen opened this issue 2 years ago • 1 comments

Add short section documenting default values for advanced exports under Tutorials > Scripting > GDScript > GDScript exports.

Targeting 3.5 since the section "GDScript exports" is mostly missing in latest.

Addresses: #4311.

SimonLarsen avatar Aug 07 '22 15:08 SimonLarsen

Targeting 3.5 since the section "GDScript exports" is mostly missing in latest.

This is actually an accumulation of several mistakes. https://github.com/godotengine/godot-docs/pull/3444 added this information to the article and https://github.com/godotengine/godot-docs/pull/5622 expanded on it. But a part of the changes was lost in https://github.com/godotengine/godot-docs/pull/4247 for some reason.

_get_property_list, _get, _set, and the methods from this PR should be documented. In master as well, but maybe it's worth splitting this into another article. In master we also need to document the new grouping annotations, which are simpler to use than _get_property_list (and thus make it even more sensible to split the article).

We can merge this PR as is, but this needs to be cleaned up for either version.

YuriSizov avatar Aug 07 '22 15:08 YuriSizov

Thanks!

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