i wrote a code to change one material of the mesh
but when i do it it only changes the "Element 0" material and i want to change the "Elemment 1" material
how do i do to change the second material of the mesh?
in code
Mesh.GetComponent().material = mat1;
↧