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 UnityPlayer!profiling::ProfilerManager::DisposeProfilerRecorder+0xa when Player gets relaunched and exited after running for a long amount of time
- [Input system] When releasing one touch and pressing a second touch during a single frame, the second touch is not translated into UI event line OnPointerDown by the InputSystemUIInputModule
- URP Samples - multiple "Attempting to resolve render surface" and other errors appear when setting Quality pipeline asset
- OnDemandRendering.willCurrentFrameRender returns incorrect values in the Player when UnityEngine.Rendering.OnDemandRendering.renderFrameInterval is greater than 1
- Root motion is not reapplied when transitioning from an animation without root motion to an animation with root motion
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