- Home /
Question by
Werkai · Jul 20, 2020 at 03:00 AM ·
inputinputfieldfirst-person
How do I prevent player movement input when an InputField is selected?
I'm making a first-person app where I'm trying to implement multiplayer text chat. However, whenever I type a key bound to my input axes (WASD + Space) into the input field, the character is not typed, the input field deactivates, and my player starts to move. Disabling my player movement script did not fix this problem - the same happens without the movement. Any help is appreciated.
Comment
Answer by Werkai · Jul 20, 2020 at 03:56 PM
Self answer, a quick hack for this is to enable Force Module Active under the EventManager's Standalone Input Module component. You'll still need to disable movement manually though.