Version: 2021.1

描述

Move the cursor to the beginning of the line of text.

[MenuItem("Examples/ISearchView/SetSearchText_WithCursorPosition")]
public static void SetSearchText_WithCursorPosition()
{
    var view = SearchService.ShowContextual("asset");
    view.SetSearchText("t:material", TextCursorPlacement.MoveLineStart);
}