Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 5 Mouse Input issues

Discussion in 'Scripting' started by JoshMBeyer, Apr 1, 2015.

  1. JoshMBeyer

    JoshMBeyer

    Joined:
    Aug 20, 2012
    Posts:
    48
    So I switched to unity 5. And all of a sudden unity is telling me that I havent set up my inputs. Well, I havent changed them so why did they stop working? Regardless of what character controller I use the mouse input for moving my looking direction isnt working. I can walk around but not look around. I haven't changed anything in the settings so not sure how to fix this. here is the error code..

    ArgumentException: Input Axis Mouse X is not setup.
    To change the input settings use: Edit -> Project Settings -> Input
    UnityStandardAssets.CrossPlatformInput.PlatformSpecific.StandaloneInput.GetAxis (System.String name, Boolean raw) (at Assets/Standard Assets/CrossPlatformInput/Scripts/PlatformSpecific/StandaloneInput.cs:10)
    UnityStandardAssets.CrossPlatformInput.CrossPlatformInputManager.GetAxis (System.String name, Boolean raw) (at Assets/Standard Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs:108)
    UnityStandardAssets.CrossPlatformInput.CrossPlatformInputManager.GetAxis (System.String name) (at Assets/Standard Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs:95)
    UnityStandardAssets.Characters.FirstPerson.MouseLook.LookRotation (UnityEngine.Transform character, UnityEngine.Transform camera) (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/MouseLook.cs:32)
    UnityStandardAssets.Characters.FirstPerson.FirstPersonController.RotateView () (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs:237)
    UnityStandardAssets.Characters.FirstPerson.FirstPersonController.Update () (at Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/FirstPersonController.cs:64)
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    Have you gone to Edit -> Project Settings -> Input and checked your input settings? It's possible something got mangled in the upgrade process.
     
  3. JoshMBeyer

    JoshMBeyer

    Joined:
    Aug 20, 2012
    Posts:
    48
    I Created a new project, imported the standard assets from the menu, and this still happening
     
  4. McBain

    McBain

    Joined:
    Dec 17, 2013
    Posts:
    4
    FYI, I'm getting this too with a clean install of Win 8.1 and Unity 5 using the Standard Assets Example Project. My setup is OSX Yosemite running VMWare Fusion. Mouse look for the First Person Character Controller just doesn't seem to work. I first noticed it on an existing project then did a clean install of Windows and opened the Example Project just to see if that would work. No luck there.
     
  5. Auzzanti

    Auzzanti

    Joined:
    Jun 9, 2015
    Posts:
    6
    Yo McBain,
    I am using OSX Yosemite running Windows 10(preview) and I have the exact same issue. The MouseLook script does register my mouse.