Version: 2022.2
public static Event current ;

描述

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

using UnityEngine;

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