I see that Roll a ball tutorial uses this but I’m unsure what it is. Can someone explain:
what’s the difference between this GameObject and any other variable names - as in float, bool, text etc? Why can’t we use these instead of GameObject? Is GameObject special?
I’ve also seen games where they use “GameObject gameObject” as the declaration. So what does this mean?
GameObject is not a variable name. It’s a class specific to Unity that contains a bunch of other properties (for example transform) and everything else is put on top of. This post explains it pretty well I think: