Search Unity

Feature Request sub-graphs inside sub-graphs

Discussion in 'Shader Graph' started by NellyFlo, Aug 24, 2019.

  1. NellyFlo

    NellyFlo

    Joined:
    Jul 17, 2017
    Posts:
    5
    It would be very helpful if it would be possible to use sub-graph node inside a sub-graph. I currently need to make the same complex calculation inside another complex calculation which I want to use inside my shader. It would make it a lot easier and clearer to put hat calculation into a sub-graph. I was really surprised to see, that is is not possible to add a sub-graph node inside a sub-graph,l as you can in the final shader. I think this feature should definitely be added, because without it very complex shaders are going to be quite messy.
     
    StaggartCreations likes this.
  2. Salmonman

    Salmonman

    Joined:
    Jul 14, 2016
    Posts:
    23
    Is this not possible? I just tried it out and I was able to place a sub graph inside another sub graph. Are you perhaps trying to nest the same sub graph within itself? Because that looks to be impossible, and for good reason.
     
  3. whoisj

    whoisj

    Joined:
    Jan 4, 2018
    Posts:
    26
    I think, in older versions of Shader Graph sun-nesting was impossible. Updating to the latest version should resolve the issue.