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

TableReference.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 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.

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

using Unity.Localization;
using UnityEngine;

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