Unity - Scripting API: SearchResult
struct in UnityEditor.Search
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.
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.
Description
Contains a SearchItem that was retrieved from a query.
Static Properties
| Property | Description |
|---|---|
| nil | Represents a null search result. |
Properties
| Property | Description |
|---|---|
| id | ID of the document containing that result. |
| index | Index of the document containing that result. |
| score | Relavance score of the result. A lower score indicates it is a more relevant result. |
| valid | Checks if a search result is valid. |
Constructors
| Constructor | Description |
|---|---|
| SearchResult | Creates a new SearchResult. |
Public Methods
| Method | Description |
|---|---|
| CompareTo | Compares Search Results using their index values. |
| Equals | Compare Search Result using their index values. |
| GetHashCode | Computes the hash code for this SearchResult from its index property. |