Answers for "unity set material"

C#
3

c# change material in code

currentObject.GetComponent<Renderer>().material = materialToAssign;
Posted by: Guest on June-10-2020
2

how to set material c unity

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

unity set material

gameObject.GetComponent<Renderer>().material = newMaterial;
Posted by: Guest on March-27-2020

C# Answers by Framework

Browse Popular Code Answers by Language