Version 3.3.1.2

TypeSelectorV2 class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[HideReferenceObjectPicker]
public class TypeSelectorV2 : OdinSelector<Type>, ISelectionChangeListener
Inheritance

Constructors

TypeSelectorV2(AssemblyCategory, Boolean, Type, Nullable<Boolean>, Boolean, Nullable<Boolean>, Nullable<Boolean>)
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? ))
Parameters
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

TypeSelectorV2(Boolean, Type, Nullable<Boolean>, Boolean, Nullable<Boolean>, Nullable<Boolean>, InspectorProperty)
protected TypeSelectorV2(bool supportsMultiSelect, Type selectedType, bool? showCategories, bool showHidden, bool? preferNamespaces, bool? showNoneItem, InspectorProperty property)
Parameters
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

TypeSelectorV2(IEnumerable<Type>, Boolean, Type, Nullable<Boolean>, Boolean, Nullable<Boolean>, Nullable<Boolean>)
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? ))
Parameters
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

Fields

PreferNamespaces
public bool PreferNamespaces
SelectedType
public Type SelectedType
ShowCategories
public bool ShowCategories
ShowHiddenTypes
public bool ShowHiddenTypes
ShowNoneItem
public bool ShowNoneItem
SupportsMultiSelect
public bool SupportsMultiSelect

Properties

Title
public override string Title { get; }

Methods

AddType(OdinMenuTree, Type)
protected void AddType(OdinMenuTree tree, Type type)
Parameters
OdinMenuTree tree

System.Type type

BuildSelectionTree(OdinMenuTree)
protected override void BuildSelectionTree(OdinMenuTree tree)
Parameters
OdinMenuTree tree

DefaultWindowWidth()
protected override float DefaultWindowWidth()
Returns
System.Single

DrawSelectionTree()
protected override void DrawSelectionTree()
DrawToolbar()
protected override void DrawToolbar()
DrawToolbarButtons()
protected void DrawToolbarButtons()
ShowInAux()
public OdinEditorWindow ShowInAux()