Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
[HideReferenceObjectPicker]
public class TypeSelector : OdinSelector<Type>, ISelectionChangeListener
protected TypeSelector(TypeSelector.TypeSelectorType selectorType, bool supportsMultiSelect, Type selectedType, bool? showCategories, bool? preferNamespaces, bool? showNoneItem, bool excludeInheritors, TypeSelectorDrawerSettingsAttribute settingsAttribute, Action<bool> onToggleShowCategories, InspectorProperty property)
TypeSelector.TypeSelectorType | selectorType | |
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 |
public TypeSelector(AssemblyCategory assemblyCategory, 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)
AssemblyCategory | assemblyCategory | |
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 |
public TypeSelector(IEnumerable<Type> baseTypes, 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)
System.Collections.Generic.IEnumerable<System.Type> | baseTypes | |
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 |
public TypeSelector(Type baseType, 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)
System.Type | baseType | |
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 |
public AssemblyCategory AssemblyCategory
public Type BaseType
public Type[] BaseTypes
public string CustomCategory
public bool ExcludeInheritors
public Action<bool> OnToggleShowCategories
public bool PreferNamespaces
public Type SelectedType
public TypeSelector.TypeSelectorType SelectorType
public bool ShowCategories
public bool ShowHiddenTypes
public bool ShowNoneItem
public bool SupportsMultiSelect
protected void AddItemsForType(OdinMenuTree tree, Type type, HashSet<Type> addedTypes = null)
OdinMenuTree | tree | |
System.Type | type | |
System.Collections.Generic.HashSet<System.Type> | addedTypes |
protected void AddType(OdinMenuTree tree, string path, Type type, bool isBaseType)
OdinMenuTree | tree | |
System.String | path | |
System.Type | type | |
System.Boolean | isBaseType |
protected override void BuildSelectionTree(OdinMenuTree tree)
OdinMenuTree | tree |
protected override void DrawSelectionTree()
protected override void DrawToolbar()
protected void DrawToolbarButtons()
protected string GetPath(Type type)
System.Type | type |
System.String |
public OdinEditorWindow ShowInAux()
OdinEditorWindow |