I’m adding some triggers and invisible objects to my game, and I’m wondering what the best way is to mimic those kind of 2D area resizing controls for objects without a SpriteRenderer. Is there any way to get Unity to draw those blue handles for my custom object?
More general: is there a way to create conveniently editable rectangular placeholder objects?
I put something like this together using the SpriteRenderer for its handles. I simply added a disabled SpriteRenderer to the placeholder region GameObject, even though it’s disabled, the blue handles still show. Then I used Gizmo.DrawCube to fill the rectangular region like so: