Answers for "unity change material color script"

C#
5

unity set material color

//Gets the renderer material and sets color
object.GetComponent<Renderer>().material.color = newColor;
Posted by: Guest on June-13-2020
3

how to change material in script unity

public Material Material1;
  //in the editor this is what you would set as the object you wan't to change
  public Renderer Object;
 
  void Start()
  {
       Object.material = Material1;
  }
Posted by: Guest on August-28-2020

Code answers related to "unity change material color script"

C# Answers by Framework

Browse Popular Code Answers by Language