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