Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.3.X, 2022.1.X
Votes
0
Found in
2020.3
2021.2
2022.1
2022.2
Issue ID
1401580
Regression
No
Editing Shader includes does not always update Shaders when changes are made in script
Reproduction steps:
1. Open the attached Unity project "ShaderIssue.zip" from Google Drive (link in the edit)
2. In the Project window navigate to SampleScenes folder > SimpleExample folder and open "SimpleBRGExample.unity" Scene
3. Enter Play mode and observe blue cubes in the Game view
4. Exit the Play mode, navigate to Packages folder > Core RP Library folder > ShaderLibrary folder and open the "UnityDOTSInstancing.hlsl" script
5. In script file change 332 line from "static const half4 DebugColor = half4(0, 0, 1, 1);" to "static const half4 DebugColor = half4(1, 0, 0, 1);" and save the script
6. Go back to the Editor, enter the Play mode, and observe that the color of the cubes did not change from blue to red
7. Exit the Play mode, navigate to Packages folder > Universal RP folder > Shaders folder, and open "LitForwardPass.hlsl" script
8. Make any edit in the script (for example add an empty line somewhere) and save it
9. Go back to the Editor, enter the Play mode, and observe that the cubes changed color to red
Expected result: Editor is correctly picking up color changes inside the "UnityDOTSInstancing.hlsl" script
Actual result: Editor is not picking up color changes inside the "UnityDOTSInstancing.hlsl" script
Reproducible with: 2022.1.0b10, 2022.2.0a6
Could not test with: 2019.4.36f1, 2020.3.29f1, 2021.2.14f1 (Errors in the Console window after downgrading project)
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a15
Resolution Note (fix version 2022.1):
Fixed in 2022.1.2f1
Resolution Note (fix version 2021.3):
Fixed in 2021.3.4f1