The ShowExtension
property is a boolean value that determines whether the extension options for a texture input should be displayed in the material editor. This property is part of the Editor.ShaderGraph.TextureInput
structure.
The ShowExtension
property is a boolean value that determines whether the extension options for a texture input should be displayed in the material editor. This property is part of the Editor.ShaderGraph.TextureInput
structure.
To use the ShowExtension
property, you can access it directly from an instance of TextureInput
. This property is typically used in conjunction with UI elements that conditionally display additional options based on its value.
// Example of accessing the ShowExtension property TextureInput textureInput = new TextureInput(); // Check if the extension options should be shown bool shouldShowExtension = textureInput.ShowExtension; // Set the ShowExtension property to true to display extension options textureInput.ShowExtension = true;