ResolveKeyId(SharedTableData)
Resolves this reference to a numeric key id using the given shared table data.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
public long ResolveKeyId(SharedTableData sharedData)
Parameters
The shared table data to resolve the key against.
Returns
Type | Description |
|---|---|
| long | The resolved key id, or |
Remarks
When the reference already holds an id, that id is returned directly. When it holds key text, the id is looked up in . Returns when the reference is empty, or when the key text is not present in .
sharedData0sharedDataResolve an entry reference to a stable key id.
Examples
using Unity.Localization;namespace Unity.Localization.Samples{ public class TableEntryReferenceResolveKeyIdExample { public long Run(TableEntryReference entryReference, SharedTableData sharedData) => entryReference.ResolveKeyId(sharedData); }}