Version 2.1.0.0

AttributeExampleUtilities class

Namespace: Sirenix.OdinInspector.Editor.Examples
Assembly: Sirenix.OdinInspector.Editor
public static class AttributeExampleUtilities
Inheritance
  • System.Object
  • AttributeExampleUtilities

Methods

BuildMenuTree(OdinMenuTree)
public static void BuildMenuTree(OdinMenuTree tree)
Parameters
OdinMenuTree tree

GetAllOdinAttributes()
public static IEnumerable<Type> GetAllOdinAttributes()
Returns
System.Collections.Generic.IEnumerable<System.Type>

GetAttributeCategories(Type)
public static IEnumerable<string> GetAttributeCategories(Type attributeType)
Parameters
System.Type attributeType

Returns
System.Collections.Generic.IEnumerable<System.String>

GetAttributeDescription(Type)
public static string GetAttributeDescription(Type attributeType)
Parameters
System.Type attributeType

Returns
System.String

GetAttributeExampleInfos(Type)
public static AttributeExampleInfo[] GetAttributeExampleInfos(Type attributeType)
Parameters
System.Type attributeType

GetExample(Type)
public static OdinAttributeExampleItem GetExample(Type attributeType)
Parameters
System.Type attributeType

GetExample<T>()
public static OdinAttributeExampleItem GetExample<T>()
    where T : Attribute
Type Parameters
T

GetOnlineDocumentationUrl(Type)
public static string GetOnlineDocumentationUrl(Type attributeType)
Parameters
System.Type attributeType

Returns
System.String

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.