EventType.MouseEnterWindow

切换到手册

描述

鼠标进入了某个窗口(仅限 Editor 视图)。

用户将鼠标悬停在了某个窗口上,并且没有按住任何鼠标键。该事件被发送了一次,因为鼠标进入了该窗口。

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961