I need help with input of phone

Hey, I’m making a app with multiple screens,I used ui_cancel under unhandled function to change scene when I did back from my phone, whenever I tried it on phone, it crashed. Please give me an alternative or tell me what I’m doing wrong, yes all my scripts have the unhandled function.


You mean scenes?

Using ui_cancel or using unhandled_input() alone doesn’t explain to me why your program crashes. It’s likely something going wrong in the scene switching that has nothing to do with ui_cancel and unhandled_input(). Do you have any error output?

For debugging purposes it might generally be better to use input() instead of unhandled_input(), just so you make sure to receive the input – something might actually handle the input.