Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SearchDocument

Create a new SearchDocument.
Read time 1 minuteLast updated 9 days ago

Definition

SearchDocument(string, string, string, int)

Create a new SearchDocument.
public SearchDocument(string id, string name = null, string source = null, int score = 2147483647)

Parameters

Document unique ID in the search index.

name

Document name (for example, asset path or transform path) if any.

source

Document contained source path or ID. This is usually defined for nested objects with a prefab or a scene.

score

Document score used for sorting.

SearchDocument(SearchDocument, int)

Create a new SearchDocument.
public SearchDocument(SearchDocument doc, int score)

Parameters

Source document to copy properties from.

score

Document score used for sorting.

SearchDocument(SearchDocument, string)

Create a new SearchDocument.
public SearchDocument(SearchDocument doc, string path)

Parameters

Source document to copy properties from.

path

Document path (i.e. asset path or transform path) if any.