You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm working on a project involving a Quest 3s (Android) device and Unity. I am currently trying to load a .glb file and visualize it in VR. I'm facing a problem regarding missing shaders, which should be possible to solve by adding UnityGLTF/PBRGraph to the list of always included shaders. However, when I do this I get the following error:
Error building Player: UnityGLTF/PBRGraph has too many Shader variants (1179648)
After taking a look at the issues, I've found this comment saying that I should try preloading the predefined shader variant collection. This leads to a huge compilation time, due to a big number of variants.
Is there anything I could do to speed this process up? I'm building using Unity 2022.3.8f1
The text was updated successfully, but these errors were encountered:
Are you using any specific renderer features in your URP asset?
Did you remove the shader from the "always included shaders" list after adding the premade variant sets?
With the included variant collections this should not happen. Generally, if you want to load any type of GLTF at runtime (as you typically want), then there are relatively large number of shaders to include, but not as many as visible in your screenshot.
Hello! I'm working on a project involving a Quest 3s (Android) device and Unity. I am currently trying to load a .glb file and visualize it in VR. I'm facing a problem regarding missing shaders, which should be possible to solve by adding UnityGLTF/PBRGraph to the list of always included shaders. However, when I do this I get the following error:
Error building Player: UnityGLTF/PBRGraph has too many Shader variants (1179648)
After taking a look at the issues, I've found this comment saying that I should try preloading the predefined shader variant collection. This leads to a huge compilation time, due to a big number of variants.
Is there anything I could do to speed this process up? I'm building using Unity 2022.3.8f1
The text was updated successfully, but these errors were encountered: