Description
The Name
property of the TextureInput
class in the Editor.ShaderGraph
namespace represents the name that appears in the material editor. This property is used to identify the texture input within the shader graph, allowing users to easily recognize and manage texture inputs when editing materials.
Usage
To use the Name
property, simply access it from an instance of the TextureInput
class. You can get or set the name as a string value, which will be displayed in the material editor.
Example
// Example of setting the Name property for a TextureInput instance
TextureInput textureInput = new TextureInput();
textureInput.Name = "AlbedoTexture";
// Accessing the Name property
string textureName = textureInput.Name;
// Now textureName contains "AlbedoTexture"