-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
property_can_revert and property_get_revert are not documented features #43078
Comments
Is this relevant for built-in classes or scripting as well? I'm asking this because internal callbacks can be actually overridden via GDScript but still be "private": #42968. |
@Xrayez |
For the reference, it's used (and documented) in those three classes:
It's used with It might be usable in scripts as a consequence of implementation, but it doesn't look like it was designed to be so. We can consider changing that but it's a feature request more than missing documentation. It would imply making this a method of |
@akien-mga Ahh, that makes more sense. It'd have to change how it is used in the Inspector then, cause right now it assumes the existence of the method is, itself, an indication that it should override everything else. I suppose the logic would need to separately check if there is a script and if the script instance has the method and can call it, etc. |
For now, they are useful when you work with custom classes, see #30440 (comment) |
This should be done for 4.0 IMO. I would suggest exposing |
Not without major core changes. |
Godot version:
3.2 stable
OS/device including version:
N/A
Issue description:
I noticed that this property_can_revert method exists to forcibly override the Inspector's behavior in regards to an Object's revertability of a given property. You can then see it used with property_get_revert to actually set the value upon reverting. These are not documented features and should be added to the API docs somewhere.
N/ASteps to reproduce:
Minimal reproduction project:
N/A
The text was updated successfully, but these errors were encountered: