Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
23
Found in
6000.0.71f1
6000.3.11f1
6000.4.0f1
6000.5.0b1
6000.6.0a1
Issue ID
UUM-137398
Regression
Yes
ShaderVariantCollection.variantCount and ShaderVariantCollection.shaderCount returns 0 in Builds
Steps to reproduce:
1. Open the attached user's project "TestShaders.zip"
2. Switch to a Android/Windows Standalone Build profile
3. Perform a build of "Assets/Scenes/SampleScene.unity"
4. Open the Player.log once the Windows Player launches
5. See that "Variant count" and "Shader count" are returned as 0
Actual Result: ShaderVariantCollection.variantCount and ShaderVariantCollection.shaderCount returns 0 in Builds
Expected Result: variantCount and shaderCount return appropriate count
Reproducible with: 6000.0.71f1, 6000.3.12f1, 6000.4.0f1, 6000.5.0a4 (35ed6e8537f8), 6000.5.0b1, 6000.6.0a1
Not reproducible with: 6000.5.0a3 (d715b48dcd52)
Environment tested: Windows 11 25H2
Notes:
-There are no rendering issues, the count is returned as 0
-Issue is not reproducible in the Editor Play Mode
-Issue is reproducible in Windows Standalone Player, Android Player
-Issue is reproducible with OpenGLES3 and Vulkan on Android
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
- Entities Hierarchy window allows Cyclic nesting and throws an “ArgumentException: Cyclic nesting detected” error when dragging a Prefab onto the same Prefab in the Entities Hierarchy
- EnterPlayModeOptions doesn't take effect if user manually modifies m_EnterPlayModeOptionsEnabled to 0
- VFX Graph Documentation dropdown button does nothing when clicked on the right side
Add comment