Class ScriptSearchPopup
Popup that shows the list of scripts to pick. Supports searching and basic type filtering.
Inheritance
System.Object
FlaxEditor.GUI.ContextMenu.ContextMenuBase
ScriptSearchPopup
Implements
System.IComparable
Namespace: FlaxEditor.GUI
Assembly: FlaxEngine.CSharp.dll
Syntax
public class ScriptSearchPopup : ItemsListContextMenu, IComparable, IDrawable
Methods
OnDestroy()
Declaration
public override void OnDestroy()
Overrides
FlaxEditor.GUI.ContextMenu.ContextMenuBase.OnDestroy()
Show(Control, Float2, ScriptSearchPopup.IsValidDelegate, Action<Script>)
Shows the popup.
Declaration
public static ScriptSearchPopup Show(Control showTarget, Float2 showTargetLocation, ScriptSearchPopup.IsValidDelegate isValid, Action<Script> selected)
Parameters
Control
showTarget
The show target. |
Float2
showTargetLocation
The show target location. |
ScriptSearchPopup.IsValidDelegate
isValid
Event called to check if a given script item is valid to be used. |
System.Action<Script>
selected
Event called on script item pick. |
Returns
ScriptSearchPopup
The dialog. |