Version 3.3.1.2

Odin has a dedicated attribute overview with examples

TypeRegistryItemAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Interface)]
public class TypeRegistryItemAttribute : Attribute, _Attribute
Inheritance
  • System.Object
  • System.Attribute
  • TypeRegistryItemAttribute

Constructors

TypeRegistryItemAttribute(String, String, SdfIconType, Single, Single, Single, Single, Single, Single, Single, Single, Int32)
public TypeRegistryItemAttribute(string name = null, string categoryPath = null, SdfIconType icon = SdfIconType.None, float lightIconColorR = 0F, float lightIconColorG = 0F, float lightIconColorB = 0F, float lightIconColorA = 0F, float darkIconColorR = 0F, float darkIconColorG = 0F, float darkIconColorB = 0F, float darkIconColorA = 0F, int priority = 0)
Parameters
System.String name

System.String categoryPath

SdfIconType icon

System.Single lightIconColorR

System.Single lightIconColorG

System.Single lightIconColorB

System.Single lightIconColorA

System.Single darkIconColorR

System.Single darkIconColorG

System.Single darkIconColorB

System.Single darkIconColorA

System.Int32 priority

Fields

CategoryPath
public string CategoryPath
DarkIconColor
public Color? DarkIconColor
Icon
public SdfIconType Icon
LightIconColor
public Color? LightIconColor
Name
public string Name
Priority
public int Priority