Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Missing classes

Discussion in 'Scripting' started by korven3000, Jul 1, 2020.

  1. korven3000

    korven3000

    Joined:
    Jul 1, 2020
    Posts:
    2
    Hey!

    I'm trying out Unity for the first time and I'm trying to follow a tutorial to make a simple game. The author uses the class "Input", but problem is that I can't seem to find it within Visual Studio and it is not recognized whenever i try to use it.

    I'm probably missing something obvious, but please forgive my inexperience.


    Reference: https://docs.unity3d.com/ScriptReference/Input.html
     
  2. WarmedxMints

    WarmedxMints

    Joined:
    Feb 6, 2017
    Posts:
    982
    Either intellisense isn't working or you are missing using UnityEngine; from the top of your class file. If you created the script in unity then opened it in visual studio, the using should be there.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    7,663
  4. korven3000

    korven3000

    Joined:
    Jul 1, 2020
    Posts:
    2
    Kurt-Dekker likes this.
unityunity