Visual Shaders Overview
Visual Shaders Overview
Consumer Patch

Consumer Patch

Use the consumer patch to visually represent a property of a material, like its position or scale. A graph usually ends with a consumer patch to specify how the material will appear in the effect.

You can connect other patches to the consumer patch to change the property the patch represents. This allows you to create more complicated changes to the material than you can using the Inspector.

To create a consumer patch:

  1. Select the material in the Assets panel, then go to the Inspector.

  2. Click the arrow to the left of the property you want to change, such as Texture or Size.

Example

In the example below, we applied a red color value to a consumer patch to make the material red.

We did this by connecting a red value to the Diffuse Texture input on the material’s consumer patch.

We can now connect other patches to the Value patch to add complexity to the way the material looks or how it behaves.