Hello everybody,
how can I make a circular button/group/window instead of a rectangular one? :)
Many thanks, Giancarlo
Hello everybody,
how can I make a circular button/group/window instead of a rectangular one? :)
Many thanks, Giancarlo
let this code assume you have a circle texture and have dragged and dropped it into the inspector la.
public class CircleGUI : MonoBehaviour
{
public Texture2D MyCircle;
private void OnGUI()
{
// Draw Circle in the middle of the screen if I remember correctly.
GUI.DrawTexture(new Rect((Screen.width/2)-50,(Screen.height/2),50,50)), MyCircle);
}
}