Answers for "how to set material c unity"

C#
2

how to set material c unity

Renderer rend = GetComponent<Renderer>();
 if (rend != null){
     rend.material = newMaterialRef;
 }
Posted by: Guest on July-28-2020

C# Answers by Framework

Browse Popular Code Answers by Language