# SearchProposition

> Create a new search proposition.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.Search](/engine/6000.5/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## SearchProposition(string, string, string, int, TextCursorPlacement, Texture2D, Color)

Create a new search proposition.

```csharp
public SearchProposition(string label, string replacement = null, string help = null, int priority = 2147483647, TextCursorPlacement moveCursor = TextCursorPlacement.MoveAutoComplete, Texture2D icon = null, Color color = default)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Display text of the proposition.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text used to auto-complete the query when selected.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Help text used to display additional information about the search proposition.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Value used to sort the propositions among other search propositions when displaying choices to the user.**** (\[TextCursorPlacement]\(/engine/6000.5/script-reference/unityeditor/search/textcursorplacement)): Indicates when the text cursor should be moved when auto-completing the query with the selected proposition.**** (\[Texture2D]\(/engine/6000.5/script-reference/unityengine/texture2d)): Icon used to display the proposition.**** (\[Color]\(/engine/6000.5/script-reference/unityengine/color)): Color used in query builder mode to draw the block using a specific color.

### Remarks

Used with [SearchProvider.fetchPropositions](/engine/6000.5/script-reference/unityeditor/search/searchprovider/fetchpropositions.md).

## SearchProposition(string, string, string, int, Texture2D, Object, Color)

Create a new search proposition.

```csharp
public SearchProposition(string label, string replacement, string help, int priority, Texture2D icon, object data, Color color = default)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Display text of the proposition.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text used to auto-complete the query when selected.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Help text used to display additional information about the search proposition.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Value used to sort the propositions among other search propositions when displaying choices to the user.**** (\[Texture2D]\(/engine/6000.5/script-reference/unityengine/texture2d)): Icon used to display the proposition.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): User data that the user can retrieve later to determine the nature of the proposition.**** (\[Color]\(/engine/6000.5/script-reference/unityengine/color)): Color used in query builder mode to draw the block using a specific color.

### Remarks

Used with [SearchProvider.fetchPropositions](/engine/6000.5/script-reference/unityeditor/search/searchprovider/fetchpropositions.md).

## SearchProposition(string, string, string, string, int, TextCursorPlacement, Texture2D, Type, Object, Color)

Create a new search proposition.

```csharp
public SearchProposition(string category = null, string label = null, string replacement = null, string help = null, int priority = 0, TextCursorPlacement moveCursor = TextCursorPlacement.MoveAutoComplete, Texture2D icon = null, Type type = null, object data = null, Color color = default)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Category text used to group propositions together in query builder mode.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Display text of the proposition.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text used to auto-complete the query when selected.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Help text used to display additional information about the search proposition.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Value used to sort the propositions among other search propositions when displaying choices to the user.**** (\[TextCursorPlacement]\(/engine/6000.5/script-reference/unityeditor/search/textcursorplacement)): Indicates when the text cursor should be moved when auto-completing the query with the selected proposition.**** (\[Texture2D]\(/engine/6000.5/script-reference/unityengine/texture2d)): Icon used to display the proposition.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Type of search proposition value. This information is used in the query builder mode.**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): User data that the user can retrieve later to determine the nature of the proposition.**** (\[Color]\(/engine/6000.5/script-reference/unityengine/color)): Color used in query builder mode to draw the block using a specific color.

### Remarks

Used with [SearchProvider.fetchPropositions](/engine/6000.5/script-reference/unityeditor/search/searchprovider/fetchpropositions.md).
