Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get random color 32

private Color32 GetRandomColour32()
{
    //using Color32
    return new Color32(
      (byte)UnityEngine.Random.Range(0, 255), //Red
      (byte)UnityEngine.Random.Range(0, 255), //Green
      (byte)UnityEngine.Random.Range(0, 255), //Blue
      255 //Alpha (transparency)
    );
}
Source by www.ggdesign.me #
 
PREVIOUS NEXT
Tagged: #random #color
ADD COMMENT
Topic
Name
1+9 =