-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Watch for edited resources in editor #18076
Comments
For change_receptors to work, the Resource must call godot/scene/resources/tile_set.cpp Line 310 in 0ee72fb
|
yes, the material does not call this which i would expect when the colour is changed. |
I would like materials to give me this information too when they change, especially ShaderMaterials with custom properties, because currently for design reasons I am forced to update internal materials of my plugin every frame in the editor, which is costy (I use ShaderMaterial as a container for user-defined shader constants, since my plugin abstracts a complex set of shaders). |
For the reference, the idea for 4.0 is to drop the change receptor API which is pretty hacky, and instead make the Inspector poll for changes constantly (which could then be notified to the EditorInterface/EditorInspector API I guess for plugin use).
|
|
@Calinou I'm not sure it relates to this issue. But this issue is about the other side, where you have a reference to a resource, and want to know when it changed. The
|
I think the signal should be emitted on all Resource changes. If it doesn't in some cases, it's a bug IMO. |
So I am writing a C++ plugin for godot. The user assigns a material to my custom Spatial node. Now I want to be notified when this material is changed in the editor.
It seems the add_change_receptor API nor the CoreStringNames::get_singleton()->changed signal are emitted when say the materials albedo colour changes for example.
So my next avenue was to try to connect to the property editor "variant_changed" signal, but there seems to be no way to determine what object the Property editor is editing.
I would like some way to watch when the material is modified.
The text was updated successfully, but these errors were encountered: