Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug ARFoundation

Discussion in 'AR' started by peted70, Mar 24, 2022.

  1. peted70

    peted70

    Joined:
    Oct 24, 2014
    Posts:
    3
    I have a " The type or namespace name 'ARFoundation' does not exist in the namespace 'UnityEngine.XR' (are you missing an assembly reference?)" error in my existing project.

    If I create a new project I don't see this issue and I have installed\uninstalled ARFoundation without success. I noticed a few similar earlier posts but no solution. Are there any suggestions for how to diagnose this?

    I am using Unity 2020.3.26f1 and MRTK 2.7.3
     
  2. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324
  3. peted70

    peted70

    Joined:
    Oct 24, 2014
    Posts:
    3
    I have filed a bug. Let me know if anything else is needed.
     
  4. peted70

    peted70

    Joined:
    Oct 24, 2014
    Posts:
    3
    I have discovered the issue. In my target project I created my script which referenced ARFoundation in the Scripts folder but another dependency in my project had an asmdef in the scripts folder so my code ended up in the wrong code project.