Event.type

Unity · Версия 2020.3 LTS · Scripting · Event

Event.type

public EventType type;

Описание

Тип события.

Смотрите так же: 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);
    }
}

Обновлено 17 ноября 2026 г.