Search Unity

Input class is not working

Discussion in 'Scripting' started by Kcired_reza, Jan 6, 2020.

  1. Kcired_reza

    Kcired_reza

    Joined:
    Jan 5, 2020
    Posts:
    1
    I imported an asset package and am using it in my project. The scripts are giving me an error for the Input class, none of its functions are being recognised. E.g. Input.GetAxis("Mouse X"), it says " 'Input' does not contain a definition for 'GetAxis' ". I don't understand why this is happening when I am using UnityEngine and System.Collections InputError.PNG InputError2.PNG
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,188
    Are you certain you don't have another class named Input? If so, it could be getting which one to use confused.