transform.position give local position code example
Example: how to get local position unity
transform.localPosition.y
transform.localPosition.z
transform.localPosition.x
transform.localPosition.y
transform.localPosition.z
transform.localPosition.x