- Home /
how to get the name of an object that a script is attached to
hey, how do I get the name of an object that has a script attached to it.
JAVA not C#
There is no Java in Unity. Java is a Language developed by Sun which could be said to have been used kind of as inspiration by $$anonymous$$icrosoft to create C#. JavaScript on the other hand just has its name because back then, Java was "the language of the Web" and it was hoped that JavaScript would benefit in popularity by having a well-known name. There are some syntax similarities between Java and JavaScript, though ... all of these languages can be considered C-based.
Answer by matyicsapo · Sep 04, 2010 at 10:05 AM
everything inherited from Object has a variable named name
Your answer
![](https://koobas.hobune.stream/wayback/20220613072705im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Automatically uncheck? 1 Answer
static var for one object. 2 Answers
Array problem -3 Answers
Instantiate problem 1 Answer