Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Empty
indicates the reference points at nothing.
Branch 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; } } }}

Fields

Value

Description

EmptyThis reference points at no table collection.
GuidThe collection is referenced by its GUID.
NameThe collection is referenced by its name.