Hi, everyone. I was wondering if it was possible to draw a gui box by specifying the top left and bottom right corners. I am trying to make a selection box but it isn't working, because the mouse y gets inverted. Any help is appreciated!!! :)
1 Answer
1Use Event.current.mousePosition in OnGUI functions, not Input.mousePosition.
Thanks, that helped a lot. Any idea how to set the start corner to where the mouse is when the player pushes the button?
– zmar0519See the selection box code here, though you'd have to adapt it for OnGUI: http://www.starscenesoftware.com/vectrosity.html
– Eric5h5