string CustomExtension { get; set; }

robot_2Generated
code_blocksInput

Description

The CustomExtension property of the TextureInput class in the Editor.ShaderGraph namespace represents a default texture that appears in the material editor. This property is typically used to specify custom texture extensions such as _color, _normal, _rough, etc., which are commonly used in shader graphs to define various texture inputs.

Usage

To use the CustomExtension property, you can set it to a string value that represents the desired texture extension. This will determine how the texture is displayed and utilized within the material editor.

For example, if you want to specify a custom normal map extension, you might set CustomExtension to "_normal".

Example

// Example of setting the CustomExtension property
TextureInput textureInput = new TextureInput();
textureInput.CustomExtension = "_normal";

// This sets the texture input to use a custom normal map extension.