Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ToolAttribute.variantPriority

public int variantPriority;

Description

The variant priority defines the order that tools are displayed in when they are displayed in a ToolAttribute.variantGroup dropdown.

Tools are sorted in ascending order, with the lowest values at the top of the list.

The default priority is ToolAttribute.defaultPriority.