- Home /
Question by
nooneknows · Sep 01, 2014 at 10:58 PM ·
this
Why is this a pointer to the current GameObject?
Why is the 'this'-pointer in the update method a pointer to the current GameObject and not a pointer to an instance of the class of my script derived from MonoBehavior? Thx. (sorry for my bad English)
Comment
Answer by robertbu · Sep 01, 2014 at 10:59 PM
It's not. 'this' will be a reference to your component. If your findings are different, please add an example script.
Your answer
![](https://koobas.hobune.stream/wayback/20220613162045im_/https://answers.unity.com/themes/thub/images/avi.jpg)