Answers for "how to change material in script unity"

C#
4

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
7

unity c# foreach

foreach(var item in collection) {
  
}
Posted by: Guest on April-19-2020

Code answers related to "how to change material in script unity"

C# Answers by Framework

Browse Popular Code Answers by Language