- Home /
Question by
Gureen_Ryuu · Jun 06, 2016 at 05:20 AM ·
inputinputfieldthirdpersoncontroller
How to disable the input for the ThirdPersonController/normal input when the player is writing in an InputField?
Is it possible to disable the input for the ThirdPersonController/normal input when the player is typing in an InputField? Or will I have to manually set up flags to disable/enable the input handling in the controller when the player clicks on the InputField using the OnSelect event for the box?
Comment
Answer by ninja_gear · Jun 06, 2016 at 05:25 AM
bool inputEnabled;
void Update()
{
if (inputEnabled)
{
//accept input
}
}
Your answer
![](https://koobas.hobune.stream/wayback/20220612082342im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
UI InputField text sometimes invisible? 1 Answer
InputField cannot enter Chinese after publishing the game to UWP. 0 Answers
Unity InputField, how to select other GameObjects with ONE touch on mobile devices? 0 Answers
How to Close Mobile Keyboard? 1 Answer
How to make floating mobile keyboard in mobile game ? 0 Answers