-
-
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
Exporting Node variable can't trigger setget in tool mode. #69283
Comments
Godot version This is still an issue with setget in tool mode. Tested with the following code: @tool
extends Node2D
@export var foo: bool:
set(value):
print("foo setter invoked")
foo = value In-Editor toggle boolean: |
Maybe it is another issue? This issue is focusing on exporting variable that is |
I just double checked, the issue was in not reloading the scene to get the most current script behaviour. Closing the scene and reopening resolved the problem. :face_palm: |
Does not work. Exported nodes remain nulls in the editor as of 4.0.2. |
To clarify, OP's bug is still happening in v4.0.3.stable.official. Setting primitive type values in the editor does trigger the setter, but setting |
|
Godot version
4.0 beta 6
System information
This is system-independent.
Issue description
As title.
This is because when the exported node variable
a_variable
is modified, the editor actually modifies the variablemetadata/_ editor_prop_ptr_a_variable
, so thesetget
defined in the@ tool
script does not work.Steps to reproduce
Minimal reproduction project
very easy to reproduce.
The text was updated successfully, but these errors were encountered: