- Home /
 
Drawing a Circle instead of Rect
Hello everyone, in my game I draw a Rect to make a Sniper Scope here is my code :
 var SnipCamera = Rect(0, 0, 200, 200);
 
               but it's very hard to adjust it when it's a Rectangle, so is there any way to make that circle, like :
 var rCamera = Circle(0, 0, 196, 196);
 
               thanks :)
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Berenger · Feb 20, 2012 at 07:33 PM
The object Rect doesn't draw anything. It juste create an object with those four values in arguments. No more. The drawing part is elsewhere, probably in OnGUI. To draw a circle, you need a Texture of a circle.
Your answer