Version: 2020.3
public EventType type ;

描述

事件的类型。

另请参阅:EventTypeGUI 脚本指南

using UnityEngine;

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