Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


implicit operator TableReference(string)

Converts a collection name into a name-based table reference.
Read time 1 minuteLast updated 6 days ago

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"; }}