로딩
티스토리 데이터 처리 중입니다.

유니티 C# 키보드 입력 Keyboard input 간단 사용법

 유니티 C# 키보드 입력 Keyboard input 간단 사용법

using System.Collections; using System.Collections.Generic; using UnityEngine; public class Example : MonoBehaviour { void Update() { if(Input.GetKey(KeyCode.A)) { Debug.Log("Press A"); } if (Input.GetKey(KeyCode.UpArrow)) { Debug.Log("Press UpArrow"); } if (Input.GetKey(KeyCode.Space)) { Debug.Log("Press Space"); } } }...