Box Selection

Hi,

I’m trying to get box selection (actually cube selection) working inside the editor. i.e., draw a box, and everything inside it gets selected.

I’ve almost gotten it working, unfortunately Selection.gameObjects is read-only, so my only option is to parent them to a selection object. This isn’t ideal though as it messes up the hierarchy just for selection, is there a better way to do block selection?

Selection.objects might be what you need. The doc page specifically mentions that you can assign to this property.

That works perfectly. Thanks andeeee!

Hey dude. I’m also looking for that kind of script! Is it something you can share with a fellow unity dev? :slight_smile:

Hope you consider it at least1 :smile: