EventType.MouseMove 鼠标移动

EventType.MouseMove

Description描述

Mouse was moved (editor views only).

鼠标被移动(仅编辑器视图)。

The mouse was moved without any buttons being held down. Use Event.mousePosition and Event.delta to determine mouse motion.

鼠标被移动而没有按住任何按钮。使用 Event.mousePositionEvent.delta 来确定鼠标运动。

Note that this even is only sent in the Editor, for EditorWindow windows which have EditorWindow.wantsMouseMove set to true. Mouse move events are never sent in the games.

注意这个事件仅在编辑器中发送,用于EditorWindow窗口,哪一个EditorWindow.wantsMouseMove设置为真。鼠标移动事件绝对不会发送在游戏中。

最后修改:2011年5月9日 Monday 14:41

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。