Reuse shader logic
Shader Graph improvements make reusable material effects easier to organize.
Unity 6.5
Subgraph changes and examples Update releaseSuperseded

What changed
Unity feature: Shader Graph subgraph improvements
Subgraph inputs gain clearer editing controls, including colors, integer fields, sliders, and enums. A Switch node can follow an enum input’s choices.
Use it
- Select a subgraph input and choose the inline control and constraints that fit its value.
- Use an enum-driven Switch node for alternative branches, or disable an input connector when the value must remain constant.
Requirements and limits
- Inline constraints govern constant editing. Connected values still need any required validation inside the graph.