Version 2.1.0.0

Odin has a dedicated attribute overview with examples

TypeFilterAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = false, Inherited = true)]
public class TypeFilterAttribute : Attribute, _Attribute
Inheritance
  • System.Object
  • System.Attribute
  • TypeFilterAttribute

Constructors

TypeFilterAttribute(String)
Creates a dropdown menu for a property.
public TypeFilterAttribute(string memberName)
Parameters
System.String memberName

Name of any field, property or method member that implements IList. E.g. arrays or Lists.

Fields

DropdownTitle
Gets or sets the title for the dropdown. Null by default.
public string DropdownTitle
MemberName
Name of any field, property or method member that implements IList. E.g. arrays or Lists.
public string MemberName