Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
Issue ID
1196301
Regression
No
[Shader] changing lightloop.hlsl and going back to editor does not update ALL shaders which depend on it
Steps to reproduce:
1. download project and open scene
2. In project, find LightLoop.hlsl in Packages/com.unity.render-pipelines.high-definition/Runtime/Lighting/LightLoop
3. open LightLoop.hlsl and rename "ApplyDebug" to "1231231_ApplyDebug"
4. save and go back to editor window
5. observe shaders being refreshed, observe errors in console
6. clear errors
7. open LightLoop.hlsl and rename "1231231_ApplyDebug" to "ApplyDebug"
8. save and go back to editor window
9. observe shaders reimport, no errors
10a. In project, under Packages/com.unity.render-pipelines.high-definition, search "t:Shader"
10b. select all items (CTRL-A) and right click > reimport
11. observe errors persist on some shaders still
12. reimport lightloop.hlsl, reimport all shaders, observe errors are cleared now
Expected: no shader errors printed when reimporting (step 10)
Actual: some shaders are not updated (step 9) and errors are printed (step 10)
Reproduces: 2019.3.0b8 (7eb5456f98b4), 2020.1.0a8 (a932f1074310)
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
- SerializedPropertyChangeEvent is invoked when initially binding PropertyFields in custom Editor
- UI Panel is not visible when HDR and STP filter are enabled
- Crash on GfxDeviceD3D11Base::DrawBuffersIndirect when opening a specific project
- OnTriggerExit2D is called in Play mode when undoing component adding
- Builds fail with "Execution failed for task ':launcher:checkReleaseDuplicateClasses'" error when the newer version of the In-App Purchasing package is installed on a specific project
Resolution Note (fix version 2020.2):
This issue does not reproduce in 2020.1.0b8 or 2020.2.0a4