Version 3.3.1.2

NonDefaultConstructorPreference enum

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
public enum NonDefaultConstructorPreference
Specifies how non-default constructors are handled.

Values

ConstructIdeal
Attempts to find the most straightforward constructor to call, prioritizing default values.
Exclude
Excludes types with non default constructors from the Selector.
LogWarning
Logs a warning instead of constructing the object, indicating that an attempt was made to construct an object without a default constructor.
PreferUninitialized
Uses System.Runtime.Serialization.FormatterServices.GetUninitializedObject(System.Type) if no default constructor is found.