Shift 键是否被按住?(只读)
如果按住了任何 Shift 键,则返回 true。
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"); } } }