Class SearchablePopup
A popup window that displays a list of options and may use a search string to filter the displayed content.
Inheritance
System.Object
SearchablePopup
Namespace: ScriptableFramework.CustomEditors
Assembly: cs.temp.dll.dll
Syntax
public class SearchablePopup : PopupWindowContent
Methods
GetWindowSize()
Declaration
public override Vector2 GetWindowSize()
Returns
Type | Description |
---|---|
Vector2 |
OnClose()
Declaration
public override void OnClose()
OnGUI(Rect)
Declaration
public override void OnGUI(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect |
OnOpen()
Declaration
public override void OnOpen()
Show(Rect, String[], Int32, Action<Int32>)
Show a new SearchablePopup.
Declaration
public static void Show(Rect activatorRect, string[] options, int current, Action<int> onSelectionMade)
Parameters
Type | Name | Description |
---|---|---|
Rect | activatorRect | Rectangle of the button that triggered the popup. |
System.String[] | options | List of strings to choose from. |
System.Int32 | current | Index of the currently selected string. |
Action<System.Int32> | onSelectionMade | Callback to trigger when a choice is made. |