Skip to main content
New Participant
October 7, 2024

MRUK - Unity - assigning two materials to global mesh

Hi,

I would like to assign two materials to the global mesh. Unfortunately, Effect Mesh allows to assign one only.

Is there a way to do it via code in Unity? 

Anyone willing to point me in the right direction? Newbie here 😥

Carlo

2 replies

Inspiring
October 16, 2024

you can access the mesh renderer via script and you can replace the material during runtime.

gameobject.GetComponent<Renderer>().material = myMaterial

 

New Participant
October 16, 2024

Sounds great magnimus_studios 

Do you think I can assign two materials?