CreateRecordKey
Creates a record key from a document identifier and a property path.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
CreateRecordKey(string, string)
Creates a record key from a document identifier and a property path.
public static PropertyDatabaseRecordKey CreateRecordKey(string documentId, string propertyPath)
Parameters
Returns
Type | Description |
|---|---|
| PropertyDatabaseRecordKey | The record key. |
Remarks
Additional Resources: PropertyDatabaseRecordKey, PropertyDatabase.Store, PropertyDatabase.TryLoad and PropertyDatabase.Invalidate.
CreateRecordKey(ulong, Hash128)
Creates a record key from a document key and a property hash.
public static PropertyDatabaseRecordKey CreateRecordKey(ulong documentKey, Hash128 propertyPathHash)
Parameters
Returns
Type | Description |
|---|---|
| PropertyDatabaseRecordKey | The record key. |
Remarks
Additional Resources: PropertyDatabaseRecordKey, PropertyDatabase.CreateDocumentKey, PropertyDatabase.CreatePropertyHash, PropertyDatabase.Store, PropertyDatabase.TryLoad and PropertyDatabase.Invalidate.
CreateRecordKey(string)
Creates a record key from a property path.
public static PropertyDatabaseRecordKey CreateRecordKey(string propertyPath)
Parameters
A property path or name.
Returns
Type | Description |
|---|---|
| PropertyDatabaseRecordKey | The record key. |
Remarks
The document identifier will be considered as null and the document key will be 0.
Additional Resources: PropertyDatabaseRecordKey, PropertyDatabase.Store, PropertyDatabase.TryLoad and PropertyDatabase.Invalidate.
CreateRecordKey(string, Hash128)
Creates a record key from a document identifier and a property hash.
public static PropertyDatabaseRecordKey CreateRecordKey(string documentId, Hash128 propertyHash)
Parameters
Returns
Type | Description |
|---|---|
| PropertyDatabaseRecordKey | The record key. |
Remarks
Additional Resources: PropertyDatabaseRecordKey, PropertyDatabase.CreatePropertyHash, PropertyDatabase.Store, PropertyDatabase.TryLoad and PropertyDatabase.Invalidate.
CreateRecordKey(Hash128)
Creates a record key from a property hash.
public static PropertyDatabaseRecordKey CreateRecordKey(Hash128 propertyHash)
Parameters
A property hash.
Returns
Type | Description |
|---|---|
| PropertyDatabaseRecordKey | The record key. |
Remarks
The document identifier will be considered as null and the document key will be 0.
Additional Resources: PropertyDatabaseRecordKey, PropertyDatabase.CreatePropertyHash, PropertyDatabase.Store, PropertyDatabase.TryLoad and PropertyDatabase.Invalidate.