Hi. Newbie here! I’ve been trying to follow this <> pixelization shader tutorial on here from youtube, but whenever i create a shader, mainly the image effect shader, and open it in VS, it starts throwing many errors. Almost as the there is a compiler issue and it tries to read it as basic c# code. Please help me understand the problem.
for context, ive recently reset my pc and resetup unity and vs. This has never happened before when ive worked with shaders. let me know if there are things setting up wise that i can look into please. again sorry if this is a stupid question.
Maybe this helps: Unity - Manual: Debugging shaders using Visual Studio
Last thing I know is that VS required plugins to understand Unity shaders. But the ones I know haven’t been updated in ~6 years.
ShaderLabs: GitHub - wudixiaop/ShaderlabVS: ShaderlabVS is a Visual Studio plugin for Unity Shaderlab programming
this plugin: Shader Unity Support - Visual Studio Marketplace
They’re probably not aware of today’s scriptable render pipeline stuff though, so probably not worthwhile checking out.
In any case, you can just ignore these errors as long as it compiles in Unity. You may be able to disable syntax highlighting and error checking for .shader files.
2 Likes
Thanks a lot! I’ll defo give this a try.
I have the same problem, and i cant find any onformation on how to fix it.
Fixed it, if u get the errors in VSCode install the ShaderLABS extension, that fixed it for me