Shader error in 'Hidden/VFX/SpendAmmoCasing/System/Output Particle Quad': Couldn't open include file 'Packages/com.unity.visualeffectgraph/Shaders/VFXCommon.hlsl'. at line 2395
I’ve never had any issues with vfx graph in older versions of Unity. However on 2021.8f1 I am getting this error and so the visual effect is running but the sprite/texture is not rendered.
If I am not mistaken, it looks like there is something wrong with the material generated for the visual effect?
And as for looking at the file in question, it’s in a Hidden folder which I can’t figure out how to access. I can’t access it from terminal/command-line. It’s as if it doesn’t exist. Is the “Hidden” folder actually in the project? Or is it a unity source file?
Edit:
So it’s an error in the VFXCommon.hlsl file in the actual visual effect package, version 12.1.7.
I was getting a “Couldn’t open include file” warning for a shader in Hidden as well – StaggartCreations had a solution for some other warnings for Hidden shader stuff in this link-- tried it out and it seemed to make that error go away?
I’m a shader noob so i have no idea why this worked or if it is relevant to your case-- but just in case!
Ciao! Shader error in 'Hidden/VFX/SpendAmmoCasing/System/Output Particle Quad': Couldn't open include file 'Packages/com.unity.visualeffectgraph/Shaders/VFXCommon.hlsl'. at line 2395 bug is fixed in 2021.3.9f1