Version: 2021.2
LanguageEnglish
  • C#

SearchResult

struct in UnityEditor.Search

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

Description

Contains a SearchItem that was retrieved from a query.

Static Properties

nilRepresents a null search result.

Properties

idID of the document containing that result.
indexIndex of the document containing that result.
scoreRelavance score of the result. A lower score indicates it is a more relevant result.
validChecks if a search result is valid.

Constructors

SearchResultCreates a new SearchResult.

Public Methods

CompareToCompares Search Results using their index values.
EqualsCompare Search Result using their index values.
GetHashCodeComputes the hash code for this SearchResult from its index property.