- Home /
Question by
watercolorheartdev · Nov 11, 2017 at 08:07 PM ·
materialmaterialsgeometry
With a second material on an object, how do I restrict it to only 1 part of the object?
I have 2 materials applied to the object, and the 2nd one, I only want it on top of the cube. How do I do this?
Comment
You use $$anonymous$$esh.SetTriangles to set the triangles of the upper part of the cube to the second submesh index.
Your answer
![](https://koobas.hobune.stream/wayback/20220612142719im_/https://answers.unity.com/themes/thub/images/avi.jpg)