I'm attempting to make an outline shader that I can attach to selected objects by following this guide. After making a new material and assigning the new Shader Graph as the shader, I'm not sure how to add it to my object while keeping it's normal material. Dragging it on just replaces it and nothing in the Add Component menu is standing out. How are you supposed to include regular materials and shaders on the same object?


1 Answer 1


There is nothing different about shader graph materials here. A material is a material.

Inside your Renderer component, you'll find there is an array of material references. Just like any array in Unity, you can increase its size to add more slots, then assign your second material to one of the extra slots.

Screenshot of Mesh Renderer component with Materials array

I've shown an example with the MeshRenderer component, but this is available on other Renderer subtypes too. You can also assign an array of materials to the renderer.materials or renderer.shaderMaterials properties in script.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .