Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Input Manager Snap setting

Discussion in 'Scripting' started by vinfang, Nov 29, 2013.

  1. vinfang


    Jul 13, 2013
    Mousing over the field and looking at the description as well as looking at the reference it says that if two opposite inputs are received, the axis value will be reset to 0. I created a 2D game project in Unity 4.3 and tried to test this out by obtaining the axis value in FixedUpdate function and output the axis value, but it never resets to 0 if I pressed both the left and right button for example. It either stays at -1 or 1 based on the first button pressed.

    I then took off the checkmark and reenabled it but alas nothing. Does anyone have this setting working or know if I'm using it wrong?