Page 1 of 1

Function node isn't adding directives

PostPosted: Fri Jul 13, 2018 2:50 am
by KevinVFX
I have some include cginc directives that I want to add to a function when it's in use. In shader type surface, it works fine when I first import the node, but it disconnects on the next recompile. I have to reimport it for it to reapply. It doesn't work at all in shader type unlit. Nothing is included. I have to manually apply them into the main shader which is quite tedious and makes it difficult for anyone else to use the function.

Re: Function node isn't adding directives

PostPosted: Fri Jul 13, 2018 10:52 am
by Amplify_Borba
Hello Kevin, thank you for getting in touch and for your support!

Did you setup your project and the cginc files as per the example guide in our wiki manual?

If so, could you please share a simple sample with the issue present via [email protected], so that we can debug it on our side using your data? Thanks!