TableReference.Type
The way a table reference identifies its collection.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
public enum TableReference.Type
Remarks
A TableReference stores either a name or a GUID, and this enumeration reports which form is present. Read it from TableReference.ReferenceType rather than setting it directly, because the value is derived from the stored data. indicates the reference points at nothing.
EmptyBranch on how a reference identifies its collection.
Examples
using Unity.Localization;namespace Unity.Localization.Samples{ public class TableReferenceTypeSwitchExample { public void Run() { TableReference reference = "UI Text"; switch (reference.ReferenceType) { case TableReference.Type.Name: /* look up by name */ break; case TableReference.Type.Guid: /* look up by GUID */ break; case TableReference.Type.Empty: /* no collection */ break; } } }}