Using volume buttons on Android in Unity3d

后端 未结 4 368
深忆病人
深忆病人 2021-01-25 21:28

I am attempting to use the volume buttons in a unity3d game on Android. Unfortunately I can\'t see anything pertaining to volume being mapped as a KeyCode, so it seems to me tha

4条回答
  •  失恋的感觉
    2021-01-25 21:57

    I do not think you can map controls to the volume buttons in Unity (using keycodes). Those buttons are controlled by the system OS, it would be a bad idea to map anything to it anyways.

    You can however map to the Android touch buttons. I beileve back is Keycode.Escape and menu is Keycode.Menu.

提交回复
热议问题