- Home /
Input Manager Snap for Unity 4.3
I'm reading the description and it says if it's checked for a key or mouse button type input, if it receives an input that is in the opposite of the current direction, it should set it to neutral, which I'm guessing is 0?
I'm Debug.Log the value by using Input.GetAxis("Horizontal") but it's still either -1 or 1 without it being reset to 0 or it changing direction. Am I interpreting the meaning of this thing incorrectly?
What I would like it to do is if the player presses say both the left and right button together, the player would not move and just stay in place. I do have workarounds for this but was wondering if I was using Snap in the Input Manager wrong?
Answer by el_shaerf · Feb 15, 2014 at 07:12 PM
Use function GetAxisRaw, instead of GetAxis.
Your answer
Follow this Question
Related Questions
Input Snap option not returning 0? 0 Answers
Virtual joystick in the new input system 0 Answers
New Unity Input System Touch Controls - Destroying GameObjects On Mobile 1 Answer
Finite State Machine 1 Answer
key remaping menu 0 Answers