Horje
get random color 32 Code Example
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)
    );
}




Csharp

Related
C# .NET Core linq Distinct Code Example C# .NET Core linq Distinct Code Example
unity create gameobject from prefab in script Code Example unity create gameobject from prefab in script Code Example
how to check if control key is pressed c# Code Example how to check if control key is pressed c# Code Example
regex c# password numbers and letters Code Example regex c# password numbers and letters Code Example
c# bool to int Code Example c# bool to int Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11