-
-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Setter function is not called for newly created export variables #81972
Comments
may be adding the |
this works on my end: @tool
extends Node
enum SIZE {SMALL= 100, NORMAL = 200, LARGE = 400}
@export var image_size : SIZE = SIZE.NORMAL:
set(value):
print(value)
@export var image_length: int = 0:
set(value):
print(value) you just need to reload your scene ( |
I will test this in 3.x and 4.1 and update |
Tested on 3.5.2 It still remains a regression bug.
This is not the solution, in my opinion. and appreciate testing the scenario. |
Thanks for reporting the bug nonetheless! |
Godot version
4.2.dev.5
System information
Windows 11
Issue description
When you create an export variable with setter function, then changing the value in the inspector, does not call the setter function.
Steps to reproduce
Create a scene
Add an export variable as below:
no go back to the inspector and change the values. There will be no print statements as the methods are not called.
Workaround:
Restart the editor and it will work
Minimal reproduction project
If required, I can provide one, but loading the project, will not reproduce the bug.
The text was updated successfully, but these errors were encountered: