Description
The Color.Red
field represents a fully opaque pure red color. It is a static field of the Color
struct, meaning it can be accessed without instantiating a Color
object. This field is useful when you need a standard red color in your application, ensuring consistency and ease of use.
Usage
To use the Color.Red
field, simply reference it directly from the Color
struct. This field is read-only and provides a quick way to access a predefined red color.
Example
// Example of using Color.Red
Color myColor = Color.Red;
// Use myColor in a scene or component
Scene.Add(new GameObject { Color = myColor });