Version 3.3.0.2

TypeSelectorHandler_WILL_BE_DEPRECATED class

Namespace: Sirenix.OdinInspector.Editor.Internal
Assembly: Sirenix.OdinInspector.Editor
public static class TypeSelectorHandler_WILL_BE_DEPRECATED
Handles instantiating different versions of the Type Selector depending on the context.
Inheritance
  • System.Object
  • TypeSelectorHandler_WILL_BE_DEPRECATED
Remarks

This handler only handles shared constructors between the two versions, for obsolete or unique constructors use the desired selector.

Methods

InstantiateSelector(AssemblyCategory, Boolean, Type, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Boolean, TypeSelectorDrawerSettingsAttribute, Action<Boolean>, InspectorProperty)
public static OdinSelector<Type> InstantiateSelector(AssemblyCategory category, bool supportsMultiSelect = false, Type selectedType = null, bool? showCategories = default(bool? ), bool? preferNamespaces = default(bool? ), bool? showNoneItem = default(bool? ), bool excludeInheritors = false, TypeSelectorDrawerSettingsAttribute settingsAttribute = null, Action<bool> onToggleShowCategories = null, InspectorProperty property = null)
Parameters
AssemblyCategory category

System.Boolean supportsMultiSelect

System.Type selectedType

System.Nullable<System.Boolean> showCategories

System.Nullable<System.Boolean> preferNamespaces

System.Nullable<System.Boolean> showNoneItem

System.Boolean excludeInheritors

TypeSelectorDrawerSettingsAttribute settingsAttribute

System.Action<System.Boolean> onToggleShowCategories

InspectorProperty property

Returns
OdinSelector<System.Type>

InstantiateSelector(IEnumerable<Type>, Boolean, Type, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Boolean, TypeSelectorDrawerSettingsAttribute, Action<Boolean>, InspectorProperty)
public static OdinSelector<Type> InstantiateSelector(IEnumerable<Type> types, bool supportsMultiSelect = false, Type selectedType = null, bool? showCategories = default(bool? ), bool? preferNamespaces = default(bool? ), bool? showNoneItem = default(bool? ), bool excludeInheritors = false, TypeSelectorDrawerSettingsAttribute settingsAttribute = null, Action<bool> onToggleShowCategories = null, InspectorProperty property = null)
Parameters
System.Collections.Generic.IEnumerable<System.Type> types

System.Boolean supportsMultiSelect

System.Type selectedType

System.Nullable<System.Boolean> showCategories

System.Nullable<System.Boolean> preferNamespaces

System.Nullable<System.Boolean> showNoneItem

System.Boolean excludeInheritors

TypeSelectorDrawerSettingsAttribute settingsAttribute

System.Action<System.Boolean> onToggleShowCategories

InspectorProperty property

Returns
OdinSelector<System.Type>

InstantiateSelector(Type, Boolean, Type, Nullable<Boolean>, Boolean, Nullable<Boolean>, Nullable<Boolean>, Boolean, TypeSelectorDrawerSettingsAttribute, Action<Boolean>, InspectorProperty)
public static OdinSelector<Type> InstantiateSelector(Type type, bool supportsMultiSelect = false, Type selectedType = null, bool? showCategories = default(bool? ), bool showHiddenAlways = false, bool? preferNamespaces = default(bool? ), bool? showNoneItem = default(bool? ), bool excludeInheritors = false, TypeSelectorDrawerSettingsAttribute settingsAttribute = null, Action<bool> onToggleShowCategories = null, InspectorProperty property = null)
Parameters
System.Type type

System.Boolean supportsMultiSelect

System.Type selectedType

System.Nullable<System.Boolean> showCategories

System.Boolean showHiddenAlways

System.Nullable<System.Boolean> preferNamespaces

System.Nullable<System.Boolean> showNoneItem

System.Boolean excludeInheritors

TypeSelectorDrawerSettingsAttribute settingsAttribute

System.Action<System.Boolean> onToggleShowCategories

InspectorProperty property

Returns
OdinSelector<System.Type>