Answers for "how to set material with code unity"

C#
1

unity set material

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

unity set material

// in the Start() method
Material yourMaterial = Resources.Load("red", typeof(Material)) as Material;
Posted by: Guest on March-27-2022

Code answers related to "how to set material with code unity"

C# Answers by Framework

Browse Popular Code Answers by Language