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


원문링크 : 유니티 C# 키보드 입력 Keyboard input 간단 사용법