Dreadrith / HierarchyPlus

A general improvement to the unity hierarchy such as component icons, guide lines, row coloring and settings for customization.
GNU General Public License v3.0
35 stars 4 forks source link

Drag Toggle Components #4

Closed Dreadrith closed 5 months ago

Dreadrith commented 5 months ago

Seems to be a popular request. The ability to click and drag the mouse over components to toggle them rather than clicking them individually. gif from lunarvoid

Best way I can think of is to do the following

On left mouse down

  1. Set a custom hot control id unique to this feature
  2. Have a Hashset<Object> ready and cleared
  3. Add the clicked component to that hashset

While hot control is equal to the unique one from above

That should work as requested and expected.

Dreadrith commented 5 months ago

Implemented with commit https://github.com/Dreadrith/HierarchyPlus/commit/58842e706fc8471ee0c33ab8670e5b7891b4c7f4