Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

TableEntryReference.ToString

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public string ToString();

Returns

string A human-readable description of the reference.

Description

Returns a readable string describing this reference.

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.

<para>Log the entry reference for debugging.</para>

using Unity.Localization;
using UnityEngine;

namespace Unity.Localization.Samples { public class TableEntryReferenceToStringExample { public void Run(TableEntryReference entryReference) { Debug.Log(entryReference.ToString()); } } }