This sample demonstrates the setup of overriding a material's properties without having to write code.
The scene contains spheres which use HDRP Lit and HDRP Unlit shaders and Shader Graphs. The spheres' MaterialOverride component, attached on the MeshRenderer, overrides the material property values. The MaterialOverride component references a MaterialOverride asset which you can use to configure the properties to override.
- In the Hierarchy, select any sphere which includes PerInstance in its name
- In the Inspector, note that there is MaterialOverride component attached
- Click on the MaterialOverride asset, observe the configured properties
For more information about material overrides, see the material overrides documentation.