Godot Version
4.2.1 Stable
Question
Hi!
In the newest version, is there a way to make a Graph Node completely ignore the mouse and have the Graph Edit read the input?
I am making a dialog editor, and added a Color Organizer node, which the user can resize and recolor to organize their nodes. When the user pressed the lock button, it would set this node to ‘comment’, making it ignore the mouse, so the player could click and drag on top of it and select multiple nodes.
In the newest version though, the comment feature of Graph Nodes was removed. Changing ‘selectable’ and ‘draggable’ to false does make the node not draggable or selectable, but it still changes the mouse icon and prevents the mouse input from going into the graph edit, meaning if the user wants to select multiple nodes, they have to start dragging outside of the color organizer.
I’ve tried changing the mouse filter to Pass, Ignore, and Stop, and even changed every child’s mouse filter, and did set_processing(false), but nothing I’ve done is getting me the behavior I want.
Would anyone know a way to get the desired behavior? Thank you
A GraphNode
inherits from Control and should respect mouse_filter = ignore
.
If that is not the case, then there seems to be an inconsistency. Can you please provide a minimal reproduction project, where this behavior is visible?
It would be ideal, if you could open an issue on Issues · godotengine/godot · GitHub
Since GraphNode
is a very specialized Node, it is possible, that this behavior is intended, but without checking the details, I can’t tell for certain.
Sure. Here is the minimal reproduction:
https://www.mediafire.com/file_premium/ik4kf03iwy7fm0x/Graph_Node_Not_Respecting_Mouse_Filter_Completely.zip/file
It is just a graph edit and two graph nodes.
One has it’s mouse filter set to IGNORE, and Selectable and Draggable set to false.
Clicking and dragging on the IGNORE GraphNode causes the mouse to turn into the four-directional arrow and not send it’s input to the Graph Edit. If I place the other graph node on top of it, I can no longer drag it.
I am a new user so I can’t attatch anything, but I uploaded a video of the intended working behavior vs the new behavior. The intended behavior is in Godot v 4.1.1, where Graph Nodes could still be made into comments.
I realized I didn’t reply correctly. Sorry, very new to posting on the Godot Forums.
I added some replies to the post, not sure if the way I did it notified you