Search Unity

UnityEngine.UI not recognized in VSCode

Discussion in 'Editor & General Support' started by merlo177, Oct 3, 2021.

  1. merlo177

    merlo177

    Joined:
    Oct 3, 2021
    Posts:
    2
    Hello,
    I'm having a weird problem with VSCode and the UI package: it's not recognized and shown as missing/error in the editor, but then the code compiles and works properly in Unity itself. I'm having this problem on my main PC, but on a laptop with the same exact project files and Unity version (2020.3.19f1 LTS) everything works as intended, and the library is loaded with intellisense properly in VSCode.
    I've tried to delete and regenerate the project files countless times already, package manager shows I have the UI package installed and even tried another project, to no avail.
    What can I do to fix this? I found similar threads online but nothing quite worked so I'm looking for a solution. Thanks in advance to anyone that can help
     
    dylan-hart likes this.
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    TimPhil, dylan-hart and merlo177 like this.
  3. merlo177

    merlo177

    Joined:
    Oct 3, 2021
    Posts:
    2
    It did solve it for me too, thanks! I completely missed that post when looking somehow. That's a really strange and specific issue though...
     
    Kurt-Dekker likes this.