- Home /
Question by
SirSatlyStudios · Nov 27, 2020 at 09:01 AM ·
inputcoroutine
Input.inputString returning empty string in Coroutine
When trying to use Input.inputString in a Coroutine which is repeating every frame I am always just getting a blank string. I have testing running the code shown below in both a Coroutine and in Update method and it works as intended in update but never logs anything in a coroutine. Does anyone know what my issue is here?
if (Input.inputString != "")
{
Debug.Log(Input.inputString);
}
Comment
Your answer
Follow this Question
Related Questions
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
fixing a variable value during coroutine 1 Answer
How to check if input was made x seconds/frames ago? 0 Answers
Calling coroutine with Input.GetAxis problems 2 Answers
Help with waiting for input? I'm too used to how Console.ReadLine() works. 0 Answers