How to disable keyboard input on modal window?
Hello!
New to Unity so I may be missing something obvious.
I created a "modal" window for a modal question (panel covering the entire game area which disables any MOUSE input on controls behind it).
The problem is that using the arrow keys (or any other navigation keys that I'm not aware of) the user can go "behind" the "modal" window and select other controls/buttons (by pressing Spacebar).
Is there a way to stop ALL keyboard input with a simple setting?
If not, how do I stop any navigation keys from functioning?
Are there any navigation keys other than the arrow keys?
Any ideas will be most appreciated!
Answer by CAKCy · Jun 02, 2017 at 11:39 AM
An ugly workaround (until something better comes up):
Change the Navigation of ALL controls accepting keyboard navigation (buttons/scroll bars/toggles etc.) to None.
Unity just couldn't build a proper Modal Window??