Object.ToString

function ToString () : String

Description

Returns the name of the game object.

JavaScript
Debug.Log(gameObject);