ToString()
Returns a readable string describing this reference.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
public override string ToString()
Returns
Type | Description |
|---|---|
| string | A human-readable description of the reference. |
Remarks
Formats an id reference as "Id:" followed by the id, a name reference as the key text itself, and an empty reference as \<none\>. Intended for debugging and logging.
Log the entry reference for debugging.
Examples
using Unity.Localization;using UnityEngine;namespace Unity.Localization.Samples{ public class TableEntryReferenceToStringExample { public void Run(TableEntryReference entryReference) { Debug.Log(entryReference.ToString()); } }}