Detecting name through OnMouseDown

I’m trying to find out what OnMouseDown is hitting when i click… do i use debug.log (gameobject.name) ??? that doesn’t seem to work… if you could write in #C that would be great :slight_smile:

void OnMouseDown()
{
Debug.Log(this.name);
}