Answers for "set material c# 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

C# Answers by Framework

Browse Popular Code Answers by Language