Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

stringA human-readable description of the reference.

Remarks

Formats a GUID reference as "Guid:" followed by the GUID, a name reference as the name itself, and an empty reference as \<none\>. Intended for debugging and logging.
Log the reference for debugging.

Examples

using Unity.Localization;using UnityEngine;namespace Unity.Localization.Samples{ public class TableReferenceToStringExample { public void Run(TableReference reference) { Debug.Log(reference.ToString()); } }}