Version: 2021.2

GUIUtility.ScreenToGUIRect

切换到手册
public static Rect ScreenToGUIRect (Rect screenRect);

描述

将矩形从屏幕空间转换到 GUI 位置。