/// <summary> /// Get the 3 bytes from the Color3 /// </summary> /// <param name="color"></param> /// <returns></returns> public static byte[] ColorBytes(this Color3 color) { var intColor = color.ToRgb(); byte[] bytes = new byte[3]; unchecked { bytes[0] = (byte)(intColor >> 16); bytes[1] = (byte)(intColor >> 8); bytes[2] = (byte)(intColor); } return(bytes); }