Class TypeSelectorWindow
Namespace: Aspid.FastTools.Types.Editors
Assembly: Aspid.FastTools.Editor.dll
EditorWindow for selecting a type from a filtered hierarchy.
public sealed class TypeSelectorWindow : EditorWindow
Inheritance
object ← Object ← ScriptableObject ← EditorWindow ← TypeSelectorWindow
Extension Methods
EditorExtensions.GetDisplayName(Object), ProfilerMarkerExtensionsForGenerator.Marker<TypeSelectorWindow>(TypeSelectorWindow, int)
Methods
Show(Rect, TypeSelectorFilter, string, Action<string>)
Opens the selector as a dropdown anchored to screenRect.
public static void Show(Rect screenRect, TypeSelectorFilter filter = default, string assemblyQualifiedName = "", Action<string> onSelected = null)
Parameters
screenRect Rect
Screen-space rectangle the dropdown is anchored to.
filter TypeSelectorFilter
Which types the selector offers.
assemblyQualifiedName string
The assembly-qualified name of the current type; empty selects the empty row, while null leaves the selection unset.
Receives the assembly-qualified name of the selected type — the constructed
closed type for a resolved open generic — or null for <None>; a null callback is ignored.
Show(Rect, TypeSelectorFilter, string, Action<string>, StyleSheet)
Opens the selector as a dropdown anchored to screenRect and styled by
styleSheet.
public static void Show(Rect screenRect, TypeSelectorFilter filter, string assemblyQualifiedName, Action<string> onSelected, StyleSheet styleSheet)
Parameters
screenRect Rect
Screen-space rectangle the dropdown is anchored to.
filter TypeSelectorFilter
Which types the selector offers.
assemblyQualifiedName string
The assembly-qualified name of the current type; empty selects the empty row, while null leaves the selection unset.
Receives the assembly-qualified name of the selected type — the constructed
closed type for a resolved open generic — or null for <None>; a null callback is ignored.
styleSheet StyleSheet
The style sheet added after the selector's own; null keeps the look of Unity's popups.
Remarks
The selector takes the Aspid.FastTools palette and theme, as
VisualElementExtensions.AddAspidWindowTheme<T> gives them, in place of the
colors of Unity's popups. Its root has the aspid-fasttools-type-selector class.