Version 3.3.1.2

TypeSelector class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public class TypeSelector : OdinSelector<Type>, ISelectionChangeListener
Inheritance

Constructors

TypeSelector(AssemblyCategory, Boolean)
public TypeSelector(AssemblyCategory assemblyCategories, bool supportsMultiSelect)
Parameters
AssemblyCategory assemblyCategories

System.Boolean supportsMultiSelect

TypeSelector(IEnumerable<Type>, Boolean)
public TypeSelector(IEnumerable<Type> types, bool supportsMultiSelect)
Parameters
System.Collections.Generic.IEnumerable<System.Type> types

System.Boolean supportsMultiSelect

Fields

FlattenTree
public bool FlattenTree
HideNamespaces
public bool HideNamespaces

Properties

Title
public override string Title { get; }

Methods

BuildSelectionTree(OdinMenuTree)
Builds the selection tree.
protected override void BuildSelectionTree(OdinMenuTree tree)
Parameters
OdinMenuTree tree

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

IsValidSelection(IEnumerable<Type>)
public override bool IsValidSelection(IEnumerable<Type> collection)
Parameters
System.Collections.Generic.IEnumerable<System.Type> collection

Returns
System.Boolean

SetSelection(Type)
Sets the selected types.
public override void SetSelection(Type selected)
Parameters
System.Type selected