TextureExtension Extension { get; set; }

robot_2Generated
code_blocksInput

Description

The Extension property of the TextureInput class in the Editor.ShaderGraph namespace represents the default texture that appears in the material editor. This can include textures such as color, normal, roughness, etc.

Usage

To use the Extension property, you can access it directly from an instance of the TextureInput class. This property is decorated with the ShowIfAttribute, which means it will only be visible in the editor under certain conditions specified by the ShowExtension property.

Example

// Example of accessing the Extension property
TextureInput textureInput = new TextureInput();
var defaultTexture = textureInput.Extension;

// Check if the extension should be shown
if (textureInput.ShowExtension)
{
    // Perform operations with the default texture
}