Version: 2017.1

EventType.MouseLeaveWindow

切换到手册

描述

鼠标离开了某个窗口(仅限 Editor 视图)。

用户将鼠标移出了某个窗口,并且没有按住任何鼠标键。该事件被发送了一次,因为鼠标离开了该窗口。

注意,对于已将 EditorWindow.wantsMouseEnterLeaveWindow 设置为 true 的 EditorWindow 窗口, 该事件仅在 Editor 中发送。在这些游戏中从不发送鼠标进入或离开窗口事件。