ドキュメント

Unity Engine

Unity Engine

implicit operator TableReference(string)

Converts a collection name into a name-based table reference.
読み終わるまでの所要時間 1 分最終更新 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"; }}