set object to random color unity
[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;
}
Also in C#:
- unity making homing rocket
- c# string code ascii
- unity 2d horizontal movement help
- convert array to list Unity C#
- c# print expression tree
- how to declare a string c#
- check if two timespans intersect c#
- unity how to load up a scene
- c# read a webpage data
- how to put double quotes in a string c#
- s3 upload base64 .net core
- how to trigger event when a com device is connected in c#
- create expression func c# for use in where clause
- Unity if object doens't exist
- get number of sundays in a month c#
- double tryparse dot comma
- c# variable
- draw sphere cast unity with program
- internal c#
- while loop c#
- new command - latex
- out parameters c#
- multidimensional meaning
- load information with txt file to uwp c#