PropertyDatabaseRecordKey

struct in UnityEditor.Search

Description

The key of a record that is stored in the PropertyDatabase.

A key is a numerical value that represents a description of the property being stored in the PropertyDatabase. It is composed of two parts, the document key and the property key.

The document key represents what document owns the property, and the property key represents the property itself. For example, if you wish to store the size of a file, the file would be the document and the size would be the property. You can use any value for your documents, as long as it is consistent when storing multiple properties of a single document. You can also not use a document, in which case the document key will be 0.

We provide multiple helper functions to help create record keys, see PropertyDatabase.CreateRecordKey, PropertyDatabase.CreateDocumentKey and PropertyDatabase.CreatePropertyHash.

Static Properties

sizeThe size of the key, in bytes.

Properties

documentKeyThe key of the document owning the property.
propertyKeyThe key of the property.

Constructors

PropertyDatabaseRecordKeyConstructs a new record key.

Public Methods

CompareToCompares the record key to another record key.
EqualsTests equality with another record key.
GetHashCodeGets the hashcode of the key.

Operators

operator !=The not equal operator.
operator <The less than operator.
operator ==The equals operator.
operator >The greater than operator.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961