Search Unity

Input Manager Snap setting

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

  1. vinfang

    vinfang

    Joined:
    Jul 13, 2013
    Posts:
    14
    Mousing over the field and looking at the description as well as looking at the reference http://docs.unity3d.com/Documentation/Components/class-InputManager.html 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?