Unity Issue Tracker - Shader variants are recompiled while Building when the Platform is switched and changed back after the first Build
Closed
UUM-70218
Shader variants are recompiled while Building when the Platform is switched and changed back after the first Build
Unity: Shader System
Won't Fix
6.0.X
2023.2.X
2022.3.X
2021.3.X
Cancelling this 2023.2 tech release issue since the support for this release has come to end of life. Cancelling this 2023.2 port case does not affect any LTS or Unity 6 Beta/Preview that remain open.
How to reproduce:
1. Create a new project with the “Universal 3D Sample“ template
2. Navigate to File → Build Settings
3. Press “Build“
4. After the Build is finished, change the Platform to “Dedicated Server“
5. Switch the Platform back to the "Windows, Mac, Linux"
6. Press “Build“
Expected result: Shaders are not compiled
Actual result: Shaders are compiled