Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error CS0122: 'CodeFunctionNode' is inaccessible due to its protection level #3

Open
nukadelic opened this issue Jun 5, 2019 · 2 comments

Comments

@nukadelic
Copy link

The code looks very good, was very hyped to try it but I'm primarily using unity version above 2019.1 and it seems like shader graph classes are now internally implemented is internal and no longer work.

https://forum.unity.com/threads/unable-to-create-custom-shader-graph-node-due-to-inaccessibility-of-customfunctionnode-class.586876/

But there is hope for the upcoming version 7.0.0
https://github.com/Unity-Technologies/ScriptableRenderPipeline/blob/master/com.unity.shadergraph/CHANGELOG.md

@gilescoope
Copy link
Owner

Yeah unfortunately Unity removed this method of generating shader nodes. There is now a custom function node where custom shaders can be typed in. It isn't as robust however as the old method. In any case you should be able to copy the code for any of the shader nodes I've written here and set up the inputs and outputs correctly yourself.

@neon-age
Copy link

I've added support for newer Unity versions by using AsmRef! See #5 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants