📅  最后修改于: 2022-03-11 14:48:54.558000             🧑  作者: Mango
//using Color32
Color32 randomColor = new Color32(
System.Convert.ToByte(Random.Range(0, 255)), //Red
System.Convert.ToByte(Random.Range(0, 255)), //Green
System.Convert.ToByte(Random.Range(0, 255)), //Blue
System.Convert.ToByte(255), //Alpha (transparency)
);