Random onslaught of shader errors :(

I was working on some particle systems from the old unity rendering system and transferred them to HDRP. They seemed to be working just fine, and nothing appeared to be wrong until I pressed play and got this random wall of errors roadblocking me from moving on with development. None of these errors are related to, or could be solved by changes made in my Assets folder. Here’s one of the errors for reference:

Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteUnlitSubShader.cs(117,36): error CS0246: The type or namespace name 'IMasterNode' could not be found (are you missing a using directive or an assembly reference?)

All the errors are like this, except ‘lMasterNode’ might be ‘ShaderPass’ and the .cs files they are stemming from will be different. These all seem to be errors inside of the Unity Editor’s code, and I don’t know how to fix them.

Halp

Can you post the errors ?

Seem related to urp

Heres the output from the console part of the editor log:

Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\UniversalShaderGraphUtils.cs(16,108): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
*** Tundra build failed (1.44 seconds), 1 items updated, 749 evaluated
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(9,7): error CS0246: The type or namespace name ‘Data’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteLitSubShader.cs(8,7): error CS0246: The type or namespace name ‘Data’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteUnlitSubShader.cs(7,7): error CS0246: The type or namespace name ‘Data’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(4,7): error CS0246: The type or namespace name ‘Data’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\UniversalShaderGraphResources.cs(9,7): error CS0246: The type or namespace name ‘Data’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\UniversalShaderGraphUtils.cs(9,7): error CS0246: The type or namespace name ‘Data’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\Interfaces\ISpriteLitSubShader.cs(5,37): error CS0246: The type or namespace name ‘ISubShader’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\Interfaces\ISpriteUnlitSubShader.cs(5,39): error CS0246: The type or namespace name ‘ISubShader’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\MasterNodes\SpriteLitMasterNode.cs(14,33): error CS0246: The type or namespace name ‘MasterNode<>’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteLitSubShader.cs(220,99): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\MasterNodes\SpriteLitMasterNode.cs(36,37): error CS0115: ‘SpriteLitMasterNode.UpdateNodeAfterDeserialization()’: no suitable method found to override
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteLitSubShader.cs(242,80): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteLitSubShader.cs(242,118): error CS0246: The type or namespace name ‘ShaderGenerator’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteLitSubShader.cs(254,36): error CS0246: The type or namespace name ‘IMasterNode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteLitSubShader.cs(17,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteLitSubShader.cs(73,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteLitSubShader.cs(120,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(17,35): error CS0246: The type or namespace name ‘IPBRSubShader’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\MasterNodes\SpriteUnlitMasterNode.cs(17,35): error CS0246: The type or namespace name ‘MasterNode<>’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\MasterNodes\SpriteUnlitMasterNode.cs(36,37): error CS0115: ‘SpriteUnlitMasterNode.UpdateNodeAfterDeserialization()’: no suitable method found to override
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteUnlitSubShader.cs(83,101): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(392,52): error CS0246: The type or namespace name ‘PBRMasterNode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(392,78): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteUnlitSubShader.cs(105,82): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteUnlitSubShader.cs(105,120): error CS0246: The type or namespace name ‘ShaderGenerator’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteUnlitSubShader.cs(117,36): error CS0246: The type or namespace name ‘IMasterNode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(462,33): error CS0246: The type or namespace name ‘PBRMasterNode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(462,59): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(462,97): error CS0246: The type or namespace name ‘ShaderGenerator’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalSpriteUnlitSubShader.cs(17,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(473,36): error CS0246: The type or namespace name ‘IMasterNode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(20,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(100,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(145,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(194,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalPBRSubShader.cs(251,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(18,37): error CS0246: The type or namespace name ‘IUnlitSubShader’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(209,67): error CS0246: The type or namespace name ‘UnlitMasterNode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(209,95): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(256,48): error CS0246: The type or namespace name ‘UnlitMasterNode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(256,76): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(256,114): error CS0246: The type or namespace name ‘ShaderGenerator’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(268,36): error CS0246: The type or namespace name ‘IMasterNode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(21,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(69,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\SubShaders\UniversalUnlitSubShader.cs(114,9): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\UniversalShaderGraphUtils.cs(16,43): error CS0246: The type or namespace name ‘SurfaceType’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\UniversalShaderGraphUtils.cs(16,68): error CS0246: The type or namespace name ‘AlphaMode’ could not be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.render-pipelines.universal@7.3.1\Editor\ShaderGraph\UniversalShaderGraphUtils.cs(16,108): error CS0246: The type or namespace name ‘ShaderPass’ could not be found (are you missing a using directive or an assembly reference?)
AssetDatabase: script compilation time: 2.150945s

looks like some shader made in shader graph that is no longer compatible, try to identify the shader and open it, maybe a save solves the issue, though if was made for URP may need to change the end node as well

I haven’t made any shaders and deleted some fire particle effects I imported from the old render pipeline to see if that would fix it.
I restarted unity after deleting the particle effects, I restarted Unity, but it didn’t fix it. :0

WAIT A MINUTE.
Why am i getting urp errors, if im using hdrp. And it’s not like i started it with urp and downloaded hdrp I started this project on hdrp, and now it’s giving me urp errors. sus.

hm, come to think of it looks like the error is in the package manage itself, maybe try reinstall the URP and shadergraph libs

1 Like

indeed, seems all strange, is something with pipelines setup

Can try check if URP is mentioned in package manager as installed and erase all in Library folder to rebuild

1 Like

im going to try re installing the universal rp package

1 Like

It worked!
I guess I had somehow corrupted the scripts for the URP when I tried to import those old particle systems.
Thanks :>

np :slight_smile: