Color White

robot_2Generated
code_blocksInput

Description

The Color.White field represents a fully opaque white 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 when you need a standard white color in your application.

Usage

Use Color.White when you need to specify a white color in your application. This can be used in various scenarios such as setting the color of a UI element, a material, or any other graphical component that requires a color input.

Example

// Example of using Color.White
Color backgroundColor = Color.White;

// Setting a UI element's background color to white
uiElement.BackgroundColor = Color.White;

// Using Color.White in a material
Material material = new Material();
material.SetColor("BaseColor", Color.White);