Version 3.3.1.2

Odin has a dedicated attribute overview with examples

PolymorphicDrawerSettingsAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class PolymorphicDrawerSettingsAttribute : Attribute, _Attribute
Inheritance
  • System.Object
  • System.Attribute
  • PolymorphicDrawerSettingsAttribute

Constructors

PolymorphicDrawerSettingsAttribute()
public PolymorphicDrawerSettingsAttribute()

Fields

CreateInstanceFunction
Specifies a custom function for creating an instance of the selected System.Type.
public string CreateInstanceFunction
ReadOnlyIfNotNullReference
Indicates if the drawer should be read-only once a value is assigned.
public bool ReadOnlyIfNotNullReference

Properties

NonDefaultConstructorPreference
Specifies how non-default constructors are handled.
public NonDefaultConstructorPreference NonDefaultConstructorPreference { get; set; }
NonDefaultConstructorPreferenceIsSet
public bool NonDefaultConstructorPreferenceIsSet { get; }
ShowBaseType
Determines whether the base type should be displayed in the drawer.
public bool ShowBaseType { get; set; }
ShowBaseTypeIsSet
public bool ShowBaseTypeIsSet { get; }