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