Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/QuickSearch.cs
/// <summary>
/// Open the default Quick Search window using default settings.
/// </summary>
/// <param name="defaultWidth">Initial width of the window.</param>
/// <param name="defaultHeight">Initial height of the window.</param>
/// <param name="dockable">If true, creates a dockable QuickSearch Window (that will be closed when an item is activated). If false, it will create a DropDown (borderless, undockable and unmovable) version of QuickSearch.</param>
/// <returns>Returns the Quick Search editor window instance.</returns>
Open the default Quick Search window using default settings.
Open the default Quick Search window using default settings .
public QuickSearch ShowWindow(float defaultWidth = 850, float defaultHeight = 538, bool dockable = false)
        {
            var windowSize = new Vector2(defaultWidth, defaultHeight);
            if (dockable)
                this.Show();
            else
                this.ShowDropDown(windowSize);
            Focus();
            return this;
        }
public QuickSearch ShowWindow ( float defaultWidth = 850 , float defaultHeight = 538 , bool dockable = false ) { var windowSize = new Vector2 ( defaultWidth , defaultHeight ) ; if ( dockable ) this . Show ( ) ; else this . ShowDropDown ( windowSize ) ; Focus ( ) ; return this ; }
Open the default Quick Search window using default settings.
Open the default Quick Search window using default settings .
Returns the Quick Search editor window instance.
Returns the Quick Search editor window instance .
defaultWidth
float
Initial width of the window.
Initial width of the window .
defaultHeight
float
Initial height of the window.
Initial height of the window .
dockable
bool
If true, creates a dockable QuickSearch Window (that will be closed when an item is activated). If false, it will create a DropDown (borderless, undockable and unmovable) version of QuickSearch.
If true creates a dockable QuickSearch Window ( that will be closed when an item is activated ) . If false it will create a DropDown ( borderless undockable and unmovable ) version of QuickSearch .