Version: 2021.2

SearchPropositionConstructor

切换到手册
public SearchProposition (string label, string replacement, string help, int priority, Search.TextCursorPlacement moveCursor, Texture2D icon);

参数

label Display text of the proposition.
replacement Text used to auto-complete the query when selected.
help Help text used to display additional information about the search proposition.
priority Value used to sort the propositions among other search propositions when displaying choices to the user.
moveCursor Indicates when the text cursor should be moved when auto-completing the query with the selected proposition.
icon Icon used to display the proposition.

描述

Create a new search proposition.