Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Unable to create custom Shader Graph node due to inaccessibility of CustomFunctionNode class

Discussion in '2019.1 Alpha' started by mleodev, Nov 22, 2018.

  1. mleodev

    mleodev

    Joined:
    Mar 4, 2015
    Posts:
    2
    Error: CS0122: 'CodeFunctionNode' is inaccessible due to its protection level

    Unable to inherit from the class CodeFunctionNode due to its protection level, I was trying to create a custom shader graph node,
    I'm using:
    • Unity 2019.1.0a9
    • Core RP Library 5.1.0
    • Lightweight RP 5.1.0
    • Shader Graph 5.1.0
     
  2. izym

    izym

    Unity Technologies

    Joined:
    Jul 27, 2013
    Posts:
    22
    Hi there,

    We're working on a new API for making custom nodes that will address some of the issues people had with the current API, as well as distance the public API more from the internals of Shader Graph such that we don't back ourselves into a corner. Unfortunately we've had to make the current API internal before the new API is ready. We know that this sucks right now, but something better is coming :) Everything you've created with CodeFunctionNode will be convertable (manually though) to the new API, and graphs made using custom CodeFunctionNodes will continue to work if you follow some simple guidelines when converting to the new API. Currently we're aiming to have it ready for 2019.1.
     
    jashan, mleodev and eizenhorn like this.
  3. mleodev

    mleodev

    Joined:
    Mar 4, 2015
    Posts:
    2
    Good to know, thanks for the proper and clear response! Waiting for the new API to come!
     
    izym likes this.
  4. deus0

    deus0

    Joined:
    May 12, 2015
    Posts:
    10
    I wish there was a way to get pinged when it's available, is there a mailing list? haha. Thanks for the great work, loving the beta and alpha updates.
     
  5. sewy

    sewy

    Joined:
    Oct 11, 2015
    Posts:
    28
    Any ETA about this? After update to 2019.1.0a10 got this error and most of my shaders cannot compile. Making the current API internal before the new API is ready with no temporary hack, to be able to continue was not a good decision at all.

    Shader Graph + HDRP 5.2.3.
     
    Last edited: Jan 3, 2019
  6. ArchVizPRO

    ArchVizPRO

    Joined:
    Apr 27, 2014
    Posts:
    306
    Unity 2019.1.0a13, still same problem. :(
     
  7. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,180
    The goal is still to have the new API ready for 2019.1, which is targeted to be released in April. It will likely become available before then on GitHub but not in the next couple of weeks.