public DisplayColorAttribute(int blue, int green, int red) { #if UNITY_ANDROID || UNITY_IOS || UNITY_STANDALONE || UNITY_METRO || UNITY_EDITOR _displayColor = new Color(red / 255.0f, green / 255.0f, blue / 255.0f, 1.0f); #elif NETSTANDARD1_4 DisplayColor = new Structure.Bgr(blue, green, red); #elif NETFX_CORE _displayColor = Color.FromArgb(255, (byte)red, (byte)green, (byte)blue); #else _displayColor = Color.FromArgb(red, green, blue); #endif }
public DisplayColorAttribute(int blue, int green, int red) { DisplayColor = new Structure.Bgr(blue, green, red); }