Event 事件
A UnityGUI event.
一个UnityGUI事件。
Events correspond to user input (key presses, mouse actions), or are UnityGUI layout or rendering events.
对应于用户输入事件(按键,鼠标行为),或是UnityGUI布局,或渲染事件。
For each event OnGUI is called in the scripts; so OnGUI is potentially called multiple times per frame. Event.current corresponds to "current" event inside OnGUI call.
对于每个事件OnGUI在脚本中被调用;因此OnGUI每帧潜在被调用多次。Event.current对应于在OnGUI里调用当前事件。
参见:EventType
Variables变量
-
The type of event.
事件的类型。 -
The mouse position.
鼠标的位置。 -
The relative movement of the mouse compared to last event.
相对于上次事件,鼠标的相对移动。 -
Which mouse button was pressed.
哪一个鼠标按钮被按下。 -
Which modifier keys are held down.
哪一个组合键被按住。 -
How many consecutive mouse clicks have we received.
我们收到的鼠标连续点击多少次。 -
The character typed.
字符类型;就是被键盘键入的对应的字符。 -
The name of an ExecuteCommand or ValidateCommand Event
ExecuteCommand或ValidateCommand事件的名字。 -
The raw key code for keyboard events.
键盘事件的原始键码。 -
Is Shift held down? (Read Only)
Shift键按住了么(只读)? -
Is Control key held down? (Read Only)
Ctrl键被按住了么(只读)? -
Is Alt/Option key held down? (Read Only)
Alt或Option键按住了么(只读)? -
Is Command/Windows key held down? (Read Only)
Command/Windows键被按住了么(只读)? -
Is Caps Lock on? (Read Only)
Caps Lock键打开了么(只读)? -
Is the current keypress on the numeric keyboard? (Read Only)
当前是在数字键盘的按键么(只读)? -
Is the current keypress a function key? (Read Only)
当前按下一个功能键?(只读) -
Is this event a keyboard event? (Read Only)
这个事件是键盘事件么(只读)? -
Is this event a mouse event? (Read Only)
这个事件是鼠标事件么(只读)?
Functions函数
-
Get a filtered event type for a give control ID.
获取一个给定controlID的过滤的事件类型。 -
Use this event.
使用这个事件。
Class Variables类变量
-
The current event that's being processed right now.
现在正在处理的当前事件。
Class Functions类函数
-
Create a keyboard event.
创建一个键盘事件。
最后修改:2010年12月31日 Friday 23:10