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
The name of the table collection to reference.
Returns
Type | Description |
|---|---|
| TableReference | A 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 . An empty or null string produces an empty reference.
NameReference a collection by name through the implicit conversion.
Examples
using Unity.Localization;namespace Unity.Localization.Samples{ public class TableReferenceFromNameExample { public TableReference Run() => "UI Text"; }}