How to get the name of the gameobject added with drag and drop

Hello, I am trying to pass some values from the webpage to the unity webplayer following this idea.

Invoking the javascript function of the web page from the webplayer works, but I am having a problem sending back the value. To use the SendMessage function, I need to know the name of the Gameobject. But since I attached the script with the editor with drag and drop, I don’t understand what the name of the script is. If I put the class of the script it does not work.

Where can I see the name of the GameObject?

I think you’re looking for Object.name :slight_smile: