TextureType Type { get; set; }

robot_2Generated
code_blocksInput

Description

The Type property of the TextureInput class in the Editor.ShaderGraph namespace specifies the type of texture being used in the shader graph. This property is of type Editor.ShaderGraph.TextureType, which defines the various types of textures that can be utilized within a shader graph.

Usage

To use the Type property, you need to have an instance of the TextureInput class. This property is typically used internally within the shader graph editor to determine the kind of texture input being processed. It is marked with JsonIgnore and Hide attributes, indicating that it is not intended for direct manipulation or serialization in typical use cases.

Example

// Example of accessing the Type property
Editor.ShaderGraph.TextureInput textureInput = new Editor.ShaderGraph.TextureInput();
Editor.ShaderGraph.TextureType textureType = textureInput.Type;

// Note: The Type property is hidden and ignored in JSON serialization, 
// so it is primarily used internally within the shader graph system.