Unity how get random color to material Code Example
set object to random color unity
[RequireComponent(typeof(Renderer))]
public class colorTint : MonoBehaviour
{
public List TintColors;
// Start is called before the first frame update
void Start()
{
Color c = TintColors[Random.Range(0, TintColors.Count)];
GetComponent().material.color = c;
}