zer0Kerbal opened this issue 3 years ago ยท 1 comments
internal static Rect clampToScreen (Rect rect) { rect.x = Mathf.Clamp (rect.x, 0, Screen.width - rect.width); rect.y = Mathf.Clamp (rect.y, 0, Screen.height - rect.height); return rect; }