- Home /
Cut Gui rect
How to cut gui with rect?
rect[i] = new Rect(Mathf.Clamp(point[i].x,0f,Screen.width-WH),Mathf.Clamp(point[i].y,0f,Screen.height-WH), WH, WH);
It clamp to the border of screen, But I need to move gui only in a border zone in screen.
kkk.jpg
(11.3 kB)
Comment