-
Notifications
You must be signed in to change notification settings - Fork 417
Multi-Selecting Nodes #40
Comments
I am trying to implement this now, I removed left click condition from the window panning and create another functions to listen when left click is performed in the window area and while not selecting any nodes. How can I draw a rect in the canvas ? `
` |
Hi @rudinesurya, cool that you're working on that. It will be very easy to draw the box, as it would probably need to be unscaled, so you could do that right before starting the scaling in the drawing function. You could also do that in HandleWindowSelection, just add the Repaint EventHandler in that case and also limit further instructions based on the eventType. |
I am thinking of similar idea with the group feature. OnWindowSelectionEnd I will add all the nodes within the box into a static list. Then I might need to add another condition to the current drag node function to check if the selected node is inside the list. if it is then drag the whole list. What do you think =) |
i think left clicking and dragging is usually used to group select, and middle mouse for panning. I know ue4, playmaker, mecanim uses this. |
Ok, change panning controls to the middle button. |
I got inspiration from this old man’s speech and completed this multi-box selection function This is the core code,
` As Seneral said, implementing these functions requires a lot of modification of the framework code, so I have no way to mention PR, sorry If you want to see a more complete sample code, including the implementation of highlighting Node, please go to |
@wqaetly Thanks, that looks really good. I currently don't have a lot of time working on new features, I am currently focussing on my other project, MakersVR. But I will try implementing it soon. |
Yes, for example, the function of holding down shift to select multiple Nodes is also very important, because in some cases the Nodes you want to select may be scattered in various places in Canvas |
Description: Selecting, moving, deleting and duplicating multiple nodes.
State: None. May need adjustements to NodeEditorState and the input checking system.
The text was updated successfully, but these errors were encountered: