0 votes

Hello,

in unity, there is a validate() method called everytime i property is changed in inspector

is there something like this for godot ?

i have a tool script that need to update things when the transform (position or rotation or scale) of a node2d is changed (and i would like in general to catch any change in inspector to update my scene for a tool script !)

i dont see any notification event happening when i change some variables

i cant find signals for this

i cant make setget method (or can i?) because its about catching any change in the transform of a node2d

Thanks for help

Godot version 3.3.3
in Engine by (20 points)

I haven't found any signals for your use, but this might help: https://godotengine.org/qa/92739/check-if-variable-is-changed

1 Answer

0 votes

Straight-outta-docs:

Object class    
void property_list_changed_notify()

Notify the editor that the property list has changed, so that editor plugins can take the new values into account. Does nothing on export builds.
by (120 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.