Is there any reason for Unity to encapsulate for example the x, y and z coordinates like this: gameObjectName.transform.position.x
and not just do this: gameObjectName.x or if you need the position in vector form that just do: gameObjectName.position
and another thing that I don't understand is why do I need to write GetComponent<componentName>() for every component that I need and not just gameObjectName.component
Any reason to make things for complicated?
Thank you in advance.
Edited by Elgauly, Yesterday, 03:46 PM.