This one has to be simple, but I can’t find the words to Google this.
I have a script attached to an object in Unity. From that script, how do I access the object’s name or other properties? I’ve read this page, but it doesn’t seem to address my question.
I’ve tried Gameobject.name and this.name, but I can’t make them work.
You attatch the script to the object then use the inspector tab in unity. You can also edit the name of the object in inspector.[12233-screen+shot+2013-06-20+at+11.01.36+pm.png|12233]