Unity
[Unity] Android Back Button 처리하기
kjun.kr
2021. 7. 7. 00:38
728x90
void Update() { if (Application.platform == RuntimePlatform.Android) { if (Input.GetKeyDown(KeyCode.Escape)) { // Back Button Application.Quit(); } if (Input.GetKeyDown(KeyCode.Home)) { // Home Button } if (Input.GetKeyDown(KeyCode.Menu)) { // Menu Button } } } |
728x90