Unity don’t accept ‘gameObject’ as shown in many examples and tutorials.
I know this because as soon as I comment out the line or change it to
something other than ‘gameObject’ it works fine, without errors in Unity.
I need to know what is wrong, and if something can be done?
…If it has any importance I am using the FREE version.
IF you are trying to acces to the Class where the methods for a GameObject are, like GameObject.Find(), Destroy, etc, use “GameObject” with “G” capital, if you are trying to access the current gameObject, like the object where the script is in or the same as this.gameObject, use “gameObject”, Capital letter at the begining, is for classes, otherwise are properties, variables, constants