文档

Unity Engine

Unity Engine

SearchDocument

Create a new SearchDocument.
阅读时间1 分钟最后更新于 1 个月前

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.