Problem with my assembly files of XR and ARFoundation

209 Views Asked by At

I was working with Unity XR and everything worked fine, but at some point i needed to change the AR Session Origin tag and so i did, but after this, when i opened the scripts, i found red errors on everything that used the XR namespace:

enter image description here

The error says "The type or namespace of "ARFoundation" / "ARSubsystems" doesn't exist in the namespace "UnityEngine.XR". There are probably some Assembly references missing." (Sorry if it's not the exact same wording but i'm translating it in english from my language).

What do i have to do to fix this?

I did not change any assembly script, nor have i changed the script in any way before changing the game object's tag, so i don't know what is happening. I already tried to delete them and rewrite them, i tried to delete them and add them through Unity's suggestions

1

There are 1 best solutions below

0
On

I fixed it: it was an error on Unity's end that for some reason messed up the assembly scripts, when i opened a copy of the project i made to test some fixes i found out that copying, pasting and using the copied version allowed unity to re-build the assembly files and fix itself