I’ve been struggling for a few days now with the fact that when I put a build on my project, the meshes don’t show up. The project has several scenes. If I put just a few scenes, the meshes show up. It doesn’t matter what scenes. If I put more than 3-4 scenes, the meshes are not there. But the program works, the UI is displayed, the audio is fine. I don’t know what to do anymore Any tips?
First thing is to check the runtime device logs to see if there are any errors being thrown, perhaps nullrefs or shader compilation errors.
Yes, sorry, I am getting these two errors:
Error TREX Interface ‘MrLightingEstimationInterface’, version 1 was not found. Check debug build for more information.
Error Unity OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state
but I am getting these errors even if it works even if it doesn’t work. I also tried switch to Vulcan and Multiview / Single view, delete Library folder but nothing.
What is really strange to me. When I build scene: 1 2 3 = works, 1 2 4 = works, 1, 2, 3, 4 = meshes are not rendered. But I just loaded only scene 1. It never load 2 3 or 4.
I am testing it on Oculus Quest 2 with the latest OS and SDK. It happens in both Unity 2021 and 2022.
I got it! I assign a different URP Asset to each scene. QualitySettings.renderPipeline = URPAsset; I do this because the scenes are very different and I need to set the shadows and antialiasing differently. So far it worked fine, I also don’t understand how it’s related to the number of scenes. But this was a problem