Struct TableEntryReference
Allows for referencing a table entry via key or key id.
Implements
Namespace: UnityEngine.Localization.Tables
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public struct TableEntryReference : ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
Key | The key name when ReferenceType is Name. |
KeyId | The Key Id when ReferenceType is Id. |
ReferenceType | The type of reference. |
Methods
Name | Description |
---|---|
Equals(object) | Compare the TableEntryReference to another TableEntryReference. |
Equals(TableEntryReference) | Compare the TableEntryReference to another TableEntryReference. |
GetHashCode() | |
ResolveKeyName(SharedTableData) | Returns the key name.
If ReferenceType is Name then Key will be returned.
If ReferenceType is Id then |
ToString(TableReference) | Returns a string representation. |
Operators
Name | Description |
---|---|
implicit operator TableEntryReference(long) | Converts a key id into a reference. |
implicit operator TableEntryReference(string) | Converts a string name into a reference. |
implicit operator long(TableEntryReference) | Returns KeyId |
implicit operator string(TableEntryReference) | Returns Key. |