Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Event.type

public EventType type;

Description

The type of event.

Additional resources: EventType, GUI Scripting Guide.

using UnityEngine;

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