기술 자료

Unity Engine

Unity Engine

TableReference.Type

The way a table reference identifies its collection.
읽는 시간 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.
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.