Version: 2017.1
public static Event current ;

描述

将被立即处理的当前事件。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void OnGUI() { Debug.Log("Current detected event: " + Event.current); } }