Unity 6.3
0 онлайн 1 гость 3 в системе
Вход

Event.shift

Declaration

public bool shift;

Описание

Задерживается ли клавиша Shift? (только для чтения)

Возвращает true, если удерживается любая клавиша Shift.

using UnityEngine;

public class Example : MonoBehaviour { // Detects if the shift key was pressed void OnGUI() { Event e = Event.current; if (e.shift) { Debug.Log("Shift was pressed :O"); } } }