Unity Issue Tracker - Shader errors are thrown in the Console window when switching to an unsupported Platform in Build settings
Fixed
UUM-15114
Shader errors are thrown in the Console window when switching to an unsupported Platform in Build settings
Unity: HD RP
HDRP
Fixed
2023.2.X
2023.1.X
Won't Fix
2022.2.X
2022.1.X
2021.3.X
Can not reproduce
2022.1 has reached end of life so the issue will be fixed in a newer version.
Can not reproduce
How to reproduce:
1. Create a new project using 3D Sample Scene (HDRP) Template
2. Go to File > Build Settings and switch to Android or WebGL Platform
3. Observe the Console window
Expected results: Only the "Platform Android is not supported with HDRP." error is present in the Console window
Actual results: Shader errors are spammed in the Console window
No shader errors are spammed in the Console when the project is switched to the iOS Platform
Reproducible with Android and WebGL Platforms
Errors:
"Shader error in '[ButterFlies][System] Update Particle': syntax error: unexpected token '#' at kernel CSMain at (59)/Library/PackageCache/com.unity.render-pipelines.high-definition@12.1.7/Runtime/ShaderLibrary/ShaderVariablesFunctions.hlsl(119) (on gles3)"
"Shader error in '[FallingLeaves][System] Initialize Particle': syntax error: unexpected token '#' at kernel CSMain at (59)/Library/PackageCache/com.unity.render-pipelines.high-definition@12.1.7/Runtime/ShaderLibrary/ShaderVariablesFunctions.hlsl(119) (on gles3)"
Prioritise and Follow this issue
Have a workaround or additional info about this issue?