Hello,
I know Unity doesn’t allow declaring pointers like this: *pointer
But it seems that there are some pointer types in unity, for example:
GameObject GO = new GameObject();
GO.name = "GO";
GameObject sameGO = GO; //doesn't copy the GO. Instead sameGO works like a pointer to GO.
sameGO.name = "SameGO"; //GO gets renamed to SameGO through another variable
This inconsistency bugs me. I need to know whether I am declaring a pointer type or not. Also pointers are extremely useful and I have no idea why Unity restricts normal pointer declaration in the first place… But since there’s nothing I can do about it I just want to know all the “hidden” pointer types in Unity.