Timeline for Is there a general name to refer to a script attached to a particular gameobject in Unity?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 10, 2018 at 15:28 | comment | added | Galandil |
You're correct, it's the first one in the list shown in the inspector. GetComponent works this way for any kind of component.
|
|
May 10, 2018 at 15:13 | comment | added | wondra |
@D.g cast it to xyz . Jokes aside, you can use either reflection or dynamic , but most importantly: if you have to do this you are doing something wrong, really wrong.
|
|
May 10, 2018 at 13:35 | comment | added | NAnn | and how can I call a specific function from the script? | |
May 10, 2018 at 11:57 | history | edited | starikcetin | CC BY-SA 4.0 |
added 80 characters in body
|
May 10, 2018 at 11:51 | history | answered | starikcetin | CC BY-SA 4.0 |