Creating a game for Android. I have an Input Field that only accepts numbers. When I click on it, an on-screen keyboard with numbers pops up. The OnValueChanged() and OnEndEdit() methods save its value. The value is only saved when I press Enter on the on-screen keyboard or anywhere else on the screen. But if you press Back button on the phone itself, the value of the field returns to the previous one and the on-screen keyboard disappears. How can I make Input Field value be saved in any case?
Hello! First of all just checking if you’re using UI Toolkit or not, since this is the UI Toolkit forum. Do you happen to have a Canvas component on your Scene? If yes, this would be using UGUI and I can transfer you post to the appropriate Forum. However, I’m pretty sure this is an OS behavior (Android in this case) and that there’s not much to be done in the UI.
I’m wondering if there’s a solution to this problem and someone came across this. Please transfer the post to the appropriate Forum.