Search Unity

Feature Request Have the 'Custom Function' node automatically generate inputs and outputs from function you specify

Discussion in 'Shader Graph' started by Robber33, May 23, 2019.

  1. Robber33

    Robber33

    Joined:
    Feb 22, 2015
    Posts:
    52
    Have the 'Custom Function' node automatically generate inputs and outputs from the function you specify.

    Having to specify inputs and outputs in both shadergraph and the include function by hand only introduces typos. It would be real nice if the custom function node could just get this from the function/file you give it.

    kind regards,

    Rob Bothof
     
  2. Robber33

    Robber33

    Joined:
    Feb 22, 2015
    Posts:
    52
    OR perhaps split the custom function node into a Custom Function String Node and a Custom Function File Node,
    Getting inputs and outputs directly from the function will also help a lot in sharing custom function node code, debugging problems and helping others with custom nodes.