Add toggling visibility of multiple nodes in scene tree by click-and-dragging#102009
Add toggling visibility of multiple nodes in scene tree by click-and-dragging#102009keestak wants to merge 1 commit intogodotengine:masterfrom
Conversation
8ea67d2 to
afdbc9b
Compare
9bdf6fc to
097d3b7
Compare
097d3b7 to
500e097
Compare
Calinou
left a comment
There was a problem hiding this comment.
Tested locally, it works as expected.
simplescreenrecorder-2025-01-25_16.23.10.mp4
Some feedback:
- The pressed icon background is only present on the first clicked icon, not the icons you've dragged the mouse over. I feel this background should display on all icons your mouse has gone over until you release the mouse button.
- Remember to update the class reference XML and fill in the descriptions as per the documentation.
I'm not sure there's an easy way to do this, especially without adding unnecessary clutter to the tree and scene tree editor classes. It would be a lot easier to just make the pressed icon background for the first clicked icon become 'unpressed' when the click drag happens (so all the icons appear 'unpressed' during the drag). Would that be acceptable? |
500e097 to
b3b4175
Compare
|
The behavior is fine, but the implementation is too complex. It should not modify Tree, or at least not introduce new API. If it turns out impossible, at least |
|
@KoBeWi Also for the record, the |
|
I'd wait for feedback from other maintainers. Maybe extra signals are fine, especially if it avoids code duplication and allows better visual feedback. |
KoBeWi
left a comment
There was a problem hiding this comment.
The new functionality is fine, but the implementation might deserve more discussion.
|
We made an attempt at implementing this without the |

Other software such as Blender, Photoshop, and Aseprite let you click and drag over layer/object visibility icons to toggle the visibility of multiple objects at once. I think this is a nice quality-of-life feature that improves workflow in the editor. This PR implements that feature for the scene tree dock.