기술 자료

Unity Engine

Unity Engine

LeftShift

Left shift key.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
LeftShift = 304

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Update() { if (Input.GetKeyDown(KeyCode.LeftShift)) { Debug.Log("Left Shift key was pressed"); } if (Input.GetKeyUp(KeyCode.LeftShift)) { Debug.Log("Left Shift key was released"); } if (Input.GetKey(KeyCode.LeftShift)) { Debug.Log("Left Shift key is being pressed"); } }}