Version: 2023.2
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); } }