Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Bug Pink textures in build (not in editor)

Discussion in 'Editor & General Support' started by DishwashaBubble, Mar 8, 2024.

  1. DishwashaBubble

    DishwashaBubble

    Joined:
    Oct 19, 2023
    Posts:
    39
    Hi,

    upload_2024-3-7_19-34-42.png

    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.

    Bubbleblast 3_7_2024 7_19_18 PM.png

    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:
    upload_2024-3-7_19-33-43.png

    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:
    upload_2024-3-7_19-31-40.png

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

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

    DishwashaBubble

    Joined:
    Oct 19, 2023
    Posts:
    39
    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.

    upload_2024-3-8_17-46-33.png
     
    Last edited: Mar 8, 2024
  3. DishwashaBubble

    DishwashaBubble

    Joined:
    Oct 19, 2023
    Posts:
    39
  4. Islayah

    Islayah

    Joined:
    Mar 28, 2024
    Posts:
    1
    i dont have any missing prefabs but i still have this issue