Forum begins after the advertisement:


[Part 10] Cannot open source file UnityCG.cginc error

Home Forums Video Game Tutorial Series Creating an Underwater Survival Game in Unity [Part 10] Cannot open source file UnityCG.cginc error

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11486
    Terence
    Moderator

    Hi folks, this is just to document an error that some of you might get when you create the Image Effect Shader in Part 10. If you get an error that says “Cannot open source file UnityCG.cginc”, a potential fix is to remove the #include "UnityCG.cginc" line in the image effect shader, and replacing it with the script found at this link: https://github.com/TwoTailsGames/Unity-Built-in-Shaders/blob/master/CGIncludes/UnityCG.cginc.

    I’m not sure why this is happening at the moment. Will post updates below as I discover them.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: