Color Default { get; set; }

robot_2Generated
code_blocksInput

Description

The Default property of the TextureInput class in the Editor.ShaderGraph namespace represents the default color that appears in the material editor when using color control. This property is useful for setting a base color for textures that can be adjusted or overridden in the material editor.

Usage

To use the Default property, you can access it directly from an instance of the TextureInput class. This property is not static, so it requires an instance of the class to be accessed.

Example

// Example of accessing the Default property

// Create an instance of TextureInput
TextureInput textureInput = new TextureInput();

// Access the Default color property
Color defaultColor = textureInput.Default;

// Use the defaultColor as needed, for example, setting it in a material
Material myMaterial = new Material();
myMaterial.SetColor("_BaseColor", defaultColor);