Description
The Color.Cyan
field represents a fully opaque cyan color. It is a static and public field of the Color
struct, which means it can be accessed without creating an instance of Color
. This field is useful for quickly accessing a standard cyan color without needing to manually define the RGBA values.
Usage
To use the Color.Cyan
field, simply reference it directly from the Color
struct. This can be useful in scenarios where you need a predefined cyan color, such as setting the color of a UI element or a game object.
Example
// Example of using Color.Cyan in a scene
GameObject myObject = new GameObject();
myObject.Color = Color.Cyan; // Sets the object's color to cyan
// Example of using Color.Cyan in a UI element
UIElement myButton = new UIElement();
myButton.BackgroundColor = Color.Cyan; // Sets the button's background color to cyan