기술 자료

Unity Engine

Unity Engine

implicit operator TableReference(string)

Converts a collection name into a name-based table reference.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Operator
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule

implicit operator TableReference(TableReferenc)

public static implicit operator TableReference(string tableCollectionName)

Parameters

tableCollectionName

The name of the table collection to reference.

Returns

Type

Description

TableReferenceA table reference that identifies the collection by name.

Remarks

Lets you assign a string wherever a TableReference is expected. The result has a TableReference.ReferenceType of
Name
. An empty or null string produces an empty reference.
Reference a collection by name through the implicit conversion.

Examples

using Unity.Localization;namespace Unity.Localization.Samples{ public class TableReferenceFromNameExample { public TableReference Run() => "UI Text"; }}