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
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
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