-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Exported variables are not updated in the inspector when their value is changed via GDScript #21009
Exported variables are not updated in the inspector when their value is changed via GDScript #21009
Comments
I think this is expected. The export is done so you change the value for the specific scene, overriding the default. So the value on the scene is kept even if you change the default. |
Hrmm... I don't think you understood the problem. It's about the inspector not being refreshed, not about the change of the actual value, which occurs fine. I'm not "changing the default", I am changing the actual value of the exported variable. |
I have a similar issue, in my custom node some properties are dynamic depending on which enum value is selected (uses |
I have the same issue. For example, if you make an |
In C++, what triggers this is |
@Zylann Thanks! That should be exposed to GDScript IMO. |
@timoschwarzer however I wonder what @reduz thinks about this because last time I found this, he wasn't super-happy with this hack |
In gdscript I used this to update any exported variables if changed in the tool script code: |
This worked for me. Thanks! |
Considering |
@sean256 I think we still need to document this in the GDScript exports documentation. |
v3.0.5 stable, Xubuntu
Making a plugin, if you change the property value of a node via GDScript, that is reflected on the inspector. This doesn't happen with exports, so you have to manually refresh the inspector clicking on something else.
Example project attached.
Example project.zip
The text was updated successfully, but these errors were encountered: