How can I make it so that the bounding box created by the mouse selection selects a sprite as soon as it hits the non-transparent part of the sprite in the editor?
Natively in Unity, a sprite is only selected once the sprite is completely englobed in the selection bounding box. Which I find very uncomfortable to use.
I don’t think it’s really possible to change Unity’s default behaviour. The scene view code seems to call HandleUtility.PickRectObjects, so you can’t really change it.
How can I get the box selection of the mouse? Because clicking on a sprite already works as intended, however the issue is the “drag” selection. If I knew how to get that info, I could do a BoxCast easily to get the sprites like you suggested.
That I don’t know since there isn’t really anything exposed to the Selection class:
But with what i posted above you can try and make one manually, you can determine where the first mouse down was and compare it to the current mouse position (then use it for your box cast)