UnityEngine.UI (and others) cannot be found?

Hello, after installing the new Input System package, it’s namespace cannot be found. Also, now UnityEngine.UI can not be found either (it was working before).

I’ve tried a few things found online, such as deleting my Library Folder, deleting and regenerating my csproj files, but nothing seems to make these work again!

Any ideas on how to get intellisense working for these again?

Is it just intellisense or does the compiler actually not find the namespace?
Have you checked if “Unity UI” is still installed in the package manager? Does it appear in the project view under “packages”?

Yes they are both in the packages, as well as have csproj’s in the root folder.

Okay, so I actually remember having this problem myself once, but I don’t know how I fixed it. Maybe try

  1. Uninstalling the Input System and see if UI works again
  2. Uninstall this in package manager and re-install:
    7555093--934210--upload_2021-10-7_20-31-15.png
  3. See if this also happens with other new projects. Since I don’t know how to fix it, would it be a lot of work to copy everything to a new one?

EDIT: No longer get errors but it looks like all intellisense is broken now, great!

I’ve tried uninstalling and installing btw, no changes. Might be worth copying to another project, just a huge waste of time for something that was working earlier on.

Have you done something to the package inadvertently? I see UnityEditor.UI but not UnityEngine.UI there.

UnityEngine.UI is right below, cut off in the image.

EDIT: It worked for a while, but as I set the input method to ‘both’ it broke again. And now remains broken.