Pink textures in build (not in editor)

Hi,

I’m working on a project that uses Unity’s XR interactions toolkit. A few months back I was hurriedly trying to figure out how to make an android/quest 2 build for the game (foolish, I know) and I was trying various things. I think I installed the oculus XR plugin as well, and I’ve since removed it. Anyway, this is when I first noticed that my textures now turn pink in the built version of the game, even when switching back to the PC platform.

Looking into this issue before, I know that an Oculus XR setting has been known to cause this, however like I said I uninstalled it.

I’ve looked into some of the other causes for this particular issue on other threads, but they don’t really seem to work for me.

My project is URP, but I’ll reiterate that in the editor everything is fine so I don’t think it’s an issue with the renderer being used as is would be the case if they were pink inside the editor (they aren’t). Everything only turns pink after building.

These are just quickly made Materials slapped onto the asset itself usually (looks like it even happens to the default unity 3D cubes which use a default texture), but here’s an example of one test model material I made:

These are mostly just quickly made materials using default unity URP shaders. I made sure to try turning stripping settings off in the URP Global Settings:

And yes, I have tried deleting my ShaderCache in Library
9687392--1381832--upload_2024-3-7_19-32-21.png

Will I need to remake the project completely?
Please help, any advice would be appreciated. Thanks.

Anyone?

Update: I think maybe it has to do with missing prefab assets. I would sometimes just delete and import new prefabs which was probably a bad idea rather than just choosing ‘reimport’. When I double click the main VR scene error to open it, I see the pink world in the editor now.

Update: Yeah I got it fixed. Just had to fix my missing prefab instances following this tutorial:


We’re all good now.

i dont have any missing prefabs but i still have this issue