Study/Unity

[Unity] 안드로이드에서 뒤로가기

성으니:) 2021. 7. 26. 14:45

 

void Update() {

	if(Application.platform == RuntimePlatform.Android) {

		if(Input.GetKey(KeyCode.Escape)) {

			// 뒤로가기 버튼 눌렀을 때 처리할 작업

			// Application.Quit();

		}

	}

}