Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
willnationsdev opened this issue Oct 25, 2020 · 1 comment
Assignees
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement

Comments

@willnationsdev
Copy link
Contributor

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 willnationsdev changed the title The GDScript Exports docs need to covert property_can_revert and property_get_revert too. The GDScript Exports docs need to cover property_can_revert and property_get_revert too. Oct 25, 2020
@akien-mga
Copy link
Member

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

@YuriSizov YuriSizov self-assigned this Aug 12, 2022
@skyace65 skyace65 added the area:manual Issues and PRs related to the Manual/Tutorials section of the documentation label Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation enhancement
Projects
None yet
Development

No branches or pull requests

4 participants