Version: 2020.3
언어: 한국어
public bool shift ;

설명

Is Shift held down? (Read Only)

Returns true if any Shift key is held down.

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