Version: 2023.2
LanguageEnglish
  • C#

SearchProposition Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public SearchProposition(string label, string replacement, string help, int priority, Texture2D icon, object data, Color color);

Declaration

public SearchProposition(string category, string label, string replacement, string help, int priority, Search.TextCursorPlacement moveCursor, Texture2D icon, Type type, object data, Color color);

Declaration

public SearchProposition(string label, string replacement, string help, int priority, Search.TextCursorPlacement moveCursor, Texture2D icon, Color color);

Parameters

category Category text used to group propositions together in query builder mode.
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.
color Color used in query builder mode to draw the block using a specific color.
data User data that the user can retrieve later to determine the nature of the proposition.
type Type of search proposition value. This information is used in the query builder mode.

Description

Create a new search proposition.