Search
 
SCRIPT & CODE EXAMPLE
 

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)
    );
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: convert array object to int[] c# 
Csharp :: swaggergen add service not getting info in .net core 
Csharp :: c# linq select from object list 
Csharp :: c# dictionary loop key value 
Csharp :: C# delete folder with all contents 
Csharp :: convert iformfile to byte array c# 
Csharp :: mvc 5 dropdownlist 
Csharp :: how to make a mouse down condition in unity 
Csharp :: c# regex get matched string 
Csharp :: c# do while loop 
Csharp :: this in unity 
Csharp :: c# array to list 
Csharp :: what is a protected int c# 
Csharp :: c# day of week number 
Csharp :: unity time deltatime 
Csharp :: c# string replace comma with newline 
Csharp :: .net c# print object 
Csharp :: c# find all indexes 
Csharp :: dynamic arrays in c# 
Csharp :: c# console header 
Csharp :: c# use hashtable check if key exists 
Csharp :: how to see image from website in wpf 
Csharp :: c# date format 
Csharp :: c# dictionary add 
Csharp :: c# new object without class 
Csharp :: c# regex match 
Csharp :: c# convert double to int 
Csharp :: streamwriter c# 
Csharp :: fluent assertions exception 
Csharp :: c# do while 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =