Description
The Priority
property of the TextureInput
class in the Editor.ShaderGraph
namespace is an integer value that determines the priority of this texture input within a group. This property is used to order or prioritize texture inputs when they are processed or displayed in the material editor.
Usage
To use the Priority
property, you can get or set its value to determine or change the order of the texture input within its group. A higher priority value typically means the texture input is processed or displayed earlier than those with lower priority values.
Example
// Example of setting the Priority property
TextureInput textureInput = new TextureInput();
textureInput.Priority = 10;
// Example of getting the Priority property
int currentPriority = textureInput.Priority;
// Use the priority to sort or manage texture inputs
if (currentPriority > 5)
{
// Perform some action based on priority
}