Set Object To Random Color Unity

[Solved] Set Object To Random Color Unity | Php - Code Explorer | yomemimo.com
Question : set object to random color unity

Answered by : obnoxious-ocelot-9xcthosoq6jh

[RequireComponent(typeof(Renderer))]
public class colorTint : MonoBehaviour
{ public List<Color> TintColors; // Start is called before the first frame update void Start() { Color c = TintColors[Random.Range(0, TintColors.Count)]; GetComponent<Renderer>().material.color = c; }

Source : | Last Update : Fri, 19 Jun 20

Answers related to set object to random color unity

Code Explorer Popular Question For Php