Unity Issue Tracker - Editor log shows confusing variant info when "optimize mesh data" is enabled
Fixed
UUM-54590
Editor log shows confusing variant info when "optimize mesh data" is enabled
Unity: Shader System
Fixed
2023.3.X
2022.3.X
Won't Fix
2023.1.X
2022.2.X
Fix has landed in trunk - Unity 2023.3.0b2
Fix landed in Unity 2022.3.18f1
This Unity version will no longer be receiving patch updates.
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.