Version: 2022.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);
}