Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SearchDocument

Represents a searchable document that has been indexed.
Read time 1 minuteLast updated 5 days ago

Definition

public readonly struct SearchDocument : IEquatable<SearchDocument>, IComparable<SearchDocument>

Fields

Value

Description

idDocument unique ID in the search index.
scoreDocument base relevance score.

Constructors

Properties

Property

Description

nameReadable name of the document.
sourceOriginal source from which the document was indexed. The source is usually the container asset, i.e. prefab, Unity scene or the imported asset itself.
validIf true the document is considered valid.

Methods

Method

Description

CompareToCompare this document against another document.
EqualsCompare this document against another document.
ToStringReturns the document ID string.