As the subject says, GetAxisRaw() reading 0 and 1 at input simultaneously…
- There is no any other input operations (reading or writing).
- Here is the code;
_horizontalInput = Input.GetAxisRaw("Horizontal");
_inputHorizontalTest = Input.GetAxisRaw("Horizontal");
_verticalInput = Input.GetAxisRaw("Vertical");
- This problem occurs both directions (Horizontal/Vertical).
- There is _inputHorizontalTest variable for make sure this problem not originating from me.
- This problem occurs when i press any button that GetAxisRaw reads. (Example W, or Down Arrow etc.)
When you press some of that button, you expect that variable gets 1 or if its negative button (S etc.) -1 or 0 at no input.
But no matter what button you’re pressing its changing values 0 to value that you need to get by pressing the button.
(Basically, imagine you are changing one variable with 1 and example 0, it will change 1 and 0 instantly every frame as it can. So GetAxisRaw acts like that right now.)