Search Issue Tracker
Fixed in 2023.1.0a19
Fixed in 2022.2.X, 2023.1.X
Votes
0
Found in
2022.2.0a12
Issue ID
UUM-732
Regression
Yes
Shaders with #include "UnityCG.glslinc" fail to run when building for WebGL
Reproduction steps:
1. Open the attached project
2. Build and Run for WebGL
Expected result: Build runs successfully
Actual result: Build fails in the browser
Reproducible with: 2021.2.0b1, 2021.2.19f1, 2021.3.2f1, 2022.1.0f1, 2022.2.0a12
Not reproducible with: 2019.4.38f1, 2020.3.34f1, 2021.2.0a16
Note:
- build runs successfully after removing GameObject "Sphere (2)" from the scene
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
- "[Project Auditor] Could not find any registered modules." warning is thrown when clicking "Start Analysis" and the rules were installed while there are compilation errors in the Editor
- Color Picker window flickers when expanding or collapsing dropdowns
- “ArgumentException: Object that does not belong to a persisted asset cannot be set as the target of a LazyLoadReference" is thrown when changing Unsupported Selector Action and saving in UI Builder
- Cursor image flickers in Viewport preview when unsupported Texture 2D is assigned to element
- [HDRP] Game view is rendered black when using Pathtracing on a HDR display
Resolution Note (fix version 2023.1):
Fix WebGL shader preprocessor that caused errors for some shaders