public EventType type ;

Description

事件的类型。

另请参阅:EventTypeGUI 脚本指南

using UnityEngine;

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