Description
The Priority
property of the UIGroup
struct in the Editor.ShaderGraph
namespace specifies the priority level of the group. This integer value determines the order in which the group is processed or displayed relative to other groups. A lower value indicates a higher priority, meaning the group will be processed or displayed earlier than groups with higher priority values.
Usage
Use the Priority
property to set or get the priority level of a UIGroup
instance. This can be useful when you need to control the order of operations or display for multiple groups within a shader graph editor.
Example
// Example of setting the Priority property for a UIGroup instance
UIGroup myGroup = new UIGroup();
myGroup.Priority = 1; // Set the priority to 1, indicating high priority
// Example of getting the Priority property
int currentPriority = myGroup.Priority;
// Use currentPriority as needed