Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/QuickSearch.cs
/// <summary>
/// Sets the search query text.
/// </summary>
/// <param name="searchText">Text to be displayed in the search view.</param>
/// <param name="moveCursor">Where to place the cursor after having set the search text</param>
Sets the search query text.
Sets the search query text .
public void SetSearchText(string searchText, TextCursorPlacement moveCursor = TextCursorPlacement.Default)
        {
            context.searchText = searchText ?? String.Empty;
            DebouncedRefresh();
            SearchField.ClearAutoComplete();
            nextFrame += () => SearchField.MoveCursor(moveCursor);
        }
public void SetSearchText ( string searchText , TextCursorPlacement moveCursor = TextCursorPlacement . Default ) { context . searchText = searchText ?? String . Empty ; DebouncedRefresh ( ) ; SearchField . ClearAutoComplete ( ) ; nextFrame += ( ) => SearchField . MoveCursor ( moveCursor ) ; }
Sets the search query text.
Sets the search query text .
searchText
string
Text to be displayed in the search view.
Text to be displayed in the search view .
moveCursor
TextCursorPlacement
None