TableReference.Type
The way a table reference identifies its collection.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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; } } }}