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. Dismiss Notice

Resolved Unity cannot find InputSystem in UnityEngine namespace

Discussion in 'Input System' started by NOT_A_ROBOT1101, Nov 8, 2021.

  1. NOT_A_ROBOT1101

    NOT_A_ROBOT1101

    Joined:
    Jun 18, 2020
    Posts:
    39
    I was putting some of my code in an assembly definition, but then an error appeared:
    The type or namespace name 'InputSystem' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

    I added an asmdef reference to Unity.InputSystem but it did not seem to help.
    upload_2021-11-8_9-28-51.png

    Visual Studio does not detect any errors, but Unity does.
    I have already tried regenerating the .csproj files. It did not help.
     
  2. NOT_A_ROBOT1101

    NOT_A_ROBOT1101

    Joined:
    Jun 18, 2020
    Posts:
    39
    Update: Closing Unity, deleting the csproj file with Windows Explorer, and opening it again worked.