Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

VSCode not finding XR.Interaction namespace

Discussion in 'AR/VR (XR) Discussion' started by augustmpemberton, Mar 11, 2020.

  1. augustmpemberton

    augustmpemberton

    Joined:
    Oct 15, 2019
    Posts:
    3
    I recently setup VSCode to work with Unity. Everything else seems to work fine, but VSCode can't find the XR.Interaction namespace. It compiles fine, and VSCode seems to work with everything else, but for some reason I'm getting red lines everywhere.
    upload_2020-3-11_18-26-34.png

    Does anyone know what the cause of this might be?

    I'm using 2019.3.4f1.

    Thanks
    -August
     
  2. augustmpemberton

    augustmpemberton

    Joined:
    Oct 15, 2019
    Posts:
    3
    Turns out I just had to downgrade the Visual Studio Code Editor package to v1.1.3. I thought I'd already done this, but updating my Unity version had reset it to the latest version.
     
    ElDivinCodino likes this.
  3. ElDivinCodino

    ElDivinCodino

    Joined:
    Apr 17, 2016
    Posts:
    4
    Thank you sir, you saved my life from frustration.
     
  4. adamgffrd

    adamgffrd

    Joined:
    Sep 26, 2018
    Posts:
    19
    Thanks for this, 1.1.3 was still giving me an issue but going to version 1.2.3 fixed it for me. :)
     
  5. atulvi

    atulvi

    Joined:
    Oct 28, 2020
    Posts:
    27
    Update or Downgrade Visual Studio Code Editor stable version package from Package Manager.
     
unityunity