Namespace: | Sirenix.OdinInspector.Editor |
Assembly: | Sirenix.OdinInspector.Editor |
[HideReferenceObjectPicker]
public class TypeSelectorV2 : OdinSelector<Type>, ISelectionChangeListener
public TypeSelectorV2(AssemblyCategory assemblyCategory, bool supportsMultiSelect = false, Type selectedType = null, bool? showCategories = default(bool? ), bool showHidden = false, bool? preferNamespaces = default(bool? ), bool? showNoneItem = default(bool? ))
AssemblyCategory | assemblyCategory | |
System.Boolean | supportsMultiSelect | |
System.Type | selectedType | |
System.Nullable<System.Boolean> | showCategories | |
System.Boolean | showHidden | |
System.Nullable<System.Boolean> | preferNamespaces | |
System.Nullable<System.Boolean> | showNoneItem |
protected TypeSelectorV2(bool supportsMultiSelect, Type selectedType, bool? showCategories, bool showHidden, bool? preferNamespaces, bool? showNoneItem, InspectorProperty property)
System.Boolean | supportsMultiSelect | |
System.Type | selectedType | |
System.Nullable<System.Boolean> | showCategories | |
System.Boolean | showHidden | |
System.Nullable<System.Boolean> | preferNamespaces | |
System.Nullable<System.Boolean> | showNoneItem | |
InspectorProperty | property |
public TypeSelectorV2(IEnumerable<Type> types, bool supportsMultiSelect = false, Type selectedType = null, bool? showCategories = default(bool? ), bool showHidden = false, bool? preferNamespaces = default(bool? ), bool? showNoneItem = default(bool? ))
System.Collections.Generic.IEnumerable<System.Type> | types | |
System.Boolean | supportsMultiSelect | |
System.Type | selectedType | |
System.Nullable<System.Boolean> | showCategories | |
System.Boolean | showHidden | |
System.Nullable<System.Boolean> | preferNamespaces | |
System.Nullable<System.Boolean> | showNoneItem |
public bool PreferNamespaces
public Type SelectedType
public bool ShowCategories
public bool ShowHiddenTypes
public bool ShowNoneItem
public bool SupportsMultiSelect
public override string Title { get; }
protected void AddType(OdinMenuTree tree, Type type)
OdinMenuTree | tree | |
System.Type | type |
protected override void BuildSelectionTree(OdinMenuTree tree)
OdinMenuTree | tree |
protected override float DefaultWindowWidth()
System.Single |
protected override void DrawSelectionTree()
protected override void DrawToolbar()
protected void DrawToolbarButtons()
public OdinEditorWindow ShowInAux()
OdinEditorWindow |