Search Issue Tracker

Fixed in 2018.1.X



Found in


Issue ID




Changes to .cginc files does not cause shaders in different directories to recompile



Reproduction steps:

1. Open "" project
2. Open "Test" scene
3. See that both Quads are yellow
4. Open the "Include.cginc" file with a text editor
5. Change the "return fixed4(1, 1, 0, 1);" to "return fixed4(0, 1, 0, 1);"
6. Go back to the Editor and see that the right Quad changed to Green, but the left one didn't
7. a) Reimport All (Or just the "SubDirectory" -> "SubDirectory" Shader)
b) 1) Open "SubDirectory" -> "SubDirectory.shader.meta" with a text Editor
2) Do any change and save
3) Go back to the Editor
8. See that the left Quad changed the color to Green

Expected Result: After doing changes to the .cginc file, all relevant shaders should reimport
Actual Result: After doing changes to the .cginc file, only the shader in the same directory reimports

Fixed in: 2018.1.0a3

Reproduced with: 2017.3.0b4, 2017.2.0f3, 2017.1.2f1, 5.6.4f1, 5.5.5f1

If not Reimported, the shader doesn't change even when making a build

Comments (4)

  1. DanteMarshal

    Sep 22, 2021 13:39

    I'm having this problem with Compute Shaders on 2020.3.18f1

  2. IIporpammep

    Dec 26, 2017 09:32

    Why didn't it fixed in some patch release for unity 2017?

  3. ArConstructor

    Dec 01, 2017 08:19

    Also, does this fix the problem with dependency tracking for package export? (

  4. Nexusmaster

    Oct 21, 2017 13:21

    This is still an issue with compute shaders, do they get fixed too?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.