Search Issue Tracker
Fixed in 2022.3.18f1
Fixed in 2022.3.X, 2023.3.X, 2023.3.0b2
Votes
0
Found in
2022.2.22f1
2022.3.1f1
2023.1.0a25
2023.1.17f1
2023.3.0a10
Issue ID
UUM-54590
Regression
No
Editor log shows confusing variant info when "optimize mesh data" is enabled
Steps:
- Open attached project (ShaderKeywordTest.zip)
- Make a player build
- Open Editor.Log and observe the lines of Compiling shader "Test/ShaderKeywordTest" (see attached image EditorLog.png)
OR observe console for error:
ShaderVariantTool error #E08. Shader Test/ShaderKeywordTest has 6 variants after ScriptableStripping, but Internal Program Count is not having same number: 4.
- Make a player build again
- No more ShaderVariantTool error #E08. Observe Editor.Log you can also see 2 variants are being stripped after built-in stripping.
- (optional) Edit the Test2.shader and change keyword name to _FANCYB, make build again you will get the same behavior.
Reproducible:
- 2023.3.0a10_c9b099e3345e
- 2023.1.17f1.3067.9210
- 2023.1.0a25.2386
- 2022.2.22f1.112
Tested on Win DX11 editor
Original slack thread: [https://unity.slack.com/archives/CQVLWNFDF/p1698162913396909]
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Specular lighting visible in a camera with Path Tracing when Preserve specular lighting is disabled in observed material
- Cinemachine package throws CS1061 errors in the Console when installed in a project that has HDRP and URP installed
- Editor.log file size grows rapidly when a scene exceeds the "Maximum Shadow on Screen" limit setting in the HDRP Asset
- Player build freezes after calling Application.Quit() when the scripting backend is set to IL2CPP
- Texture is not applied on a Custom Render Texture when a Cubemap is selected as the texture
Resolution Note (fix version 2023.3):
Fix has landed in trunk - Unity 2023.3.0b2
Resolution Note (fix version 2022.3):
Fix landed in Unity 2022.3.18f1