Sub graph not inheriting Mesh for preview

I have a custom subgraph that I use in one of my shader graphs. It works based on a 1D-Value so the easiest way to display the outcome for me is the “Quad” mesh.

However, the sub graph does not inherit the “main preview” setting of its parent, making it really hard to decipher what’s going on.


(the red one is my subgraph)

Changing the main preview on the sub graph to Quad also does not make it appear in the parent graph (I guess it really is just for preview purposes). Am I missing a setting or something?

Afaik you can’t change this with a setting.

However, you could change this file.

https://github.com/Unity-Technologies/ScriptableRenderPipeline/blob/master/com.unity.shadergraph/Editor/Data/Nodes/Utility/SubGraphNode.cs

And change line 153 to say ‘Preview2D’ instead of ‘Preview3D’

Thanks for the tip! I‘ve changed the thread type to feature request accordingly.