shift
Is Shift held down? (Read Only)
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public bool shift { get; set; }
Remarks
Returns true if any Shift key is held down.
Examples
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"); } }}