public bool shift ;

Descripción

Se está manteniendo presionado Shift? (Lectura solamente)

Devuelve true si se mantiene oprimida la tecla 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"); } } }