用户工具

站点工具


侧边栏

script:unityengine:classes:event:event

Event 事件

class in UnityEngine

Description 描述

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里调用当前事件。

See Also: EventType.

Static Variables 静态变量

currentThe current event that's being processed right now.
目前正在处理的事件。

Variables 变量

altIs Alt/Option key held down? (Read Only)
Alt或Option键按住了么(只读)?
buttonWhich mouse button was pressed.
哪个鼠标按键被按下。
capsLockIs Caps Lock on? (Read Only)
Caps Lock键打开了么(只读)?
characterThe character typed.
字符类型;就是键盘键入的对应的字符。
clickCountHow many consecutive mouse clicks have we received.
我们收到的鼠标连续点击多少次。
commandIs Command/Windows key held down? (Read Only)
Command/Windows键被按住了么(
script/unityengine/classes/event/event.txt · 最后更改: 2016/08/02 05:36 (外部编辑)