文档

Unity Engine

Unity Engine

ToString()

Returns a readable string describing this reference.
阅读时间1 分钟最后更新于 1 个月前

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()); } }}