type
The type of event.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.UICommonModule
public EventType type { get; set; }
Remarks
Additional Resources: EventType, GUI Scripting Guide
Examples
using UnityEngine;public class Example : MonoBehaviour{ // Prints the current event detected. void OnGUI() { Debug.Log("Current event detected: " + Event.current.type); }}