Texture White { get; set; }

robot_2Generated
code_blocksInput

Description

The White property provides a 1x1 solid white opaque texture. This texture can be used as a default or placeholder texture in rendering operations where a simple white texture is required.

Usage

Use the White property when you need a basic white texture for rendering purposes. This can be useful for testing, debugging, or as a default texture in various rendering scenarios.

Example

// Example of using the White texture in a material
var material = new Material();
material.SetTexture("BaseColor", Texture.White);

// Applying the material to a game object
var gameObject = new GameObject();
gameObject.SetMaterial(material);