Unity Editor: Adjust the mouse appearance when hovering over a control.
发布时间
阅读量:
阅读量
Unity编辑器 - 鼠标悬停在控件上时改变鼠标样式
摘自Unity文档
EditorGUIUtility.AddCursorRect
public static void RegisterCursorPosition(int[] coordinates, MouseCursor mouse);
public static void RegisterCursorPosition(int[] coordinates, MouseCursor mouse, int controlId);
Parameters
-
position The rectangle where the control should be displayed in.
当鼠标悬停时所处的位置
PS: Note that, when only dragging the control, this range must be larger than the control's range to prevent the mouse from reverting to normal styling when it exits the range, which causes frequent style changes.- mouse Th
全部评论 (0)
还没有任何评论哟~
