Search Issue Tracker
Won't Fix
Votes
1
Found in
2020.3.40f1
2021.3.10f1
2022.1.17f1
2022.2.0b7
2023.1.0a11
2023.2.0a1
2023.3.0a3
Issue ID
UUM-16055
Regression
No
Build fails to compile due to a Shader error when using URP or HDRP packages
Steps to reproduce:
1. Open the user’s attached project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Go to File > Build Settings > Build And Run
4. Observe the Console window
Expected result: Build is compiled successfully
Actual result: Build fails to compile due to “Shader error in 'Shader Graphs/glTF-unlit': 'CustomLight_float': output parameter 'Direction' not completely initialized at Assets/Shaders/UnlitReceiveShadow/CustomLight_float.hlsl(5)“ error
Reproducible with: 2020.3.40f1, 2021.3.10f1, 2022.1.17f1, 2022.2.0b7, 2023.1.0a11
Reproducible on: Windows 10
Notes:
1. Build is compiled successfully when building on top of the failed build files
2. Reproducible with URP and HDRP packages
3. Not reproducible with built-in RP
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
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
- Files in the target folder are deleted without a proper warning when building an iOS project
- Character animation freezes when toggling animator on/off in a coroutine
- Certain textures are incorrectly marked in the render pass list when observed through Render Graph Viewer
Resolution Note:
The custom function node is redefining internal (Unity shader library) preprocessor macros. Removing those gets rid of the "incomplete initialization" error.