Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


type

The type of event.
Read time 1 minuteLast updated 5 days ago

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); }}