unity transform to local position change local 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