This sample demonstrates material property overrides for Shader Graph shaders on Entities.
The scene contains cubes which use the Shader Graph PBR output. Some of these cubes have material override authoring components attached to their MeshRenderers. These component override the cubes' colors.
- In the Hierarchy, select the CubeRed cube
- In the Inspector, note the Material Color component. If you want to override other custom Shader Graph material properties, you can reference the MaterialColor script and create one for each of your custom material properties
- Click Edit to edit the Shader Graph, note that the Node Settings of the Color property has the Override Property Declaration enabled and Shader Declaration set to Hybrid Per Instance
For more information about custom Shader Graph material overrides, see the documentation.