Back to Writing
NOTESunitytransformdebugging

Unity Debugging: transform.position vs localPosition

October 1, 2020Updated Feb 17, 2026

![](

Lpw7JB7P6VqdfvpkY0g.qrwdWVRcQWdc_klQuS3LGydYs4YlokZy8S3CofX8piEg.PNG.cdw0424/image.png?type=w966)

When you need to get the coordinates of a specific object, you typically access transform.position.

However, the Vector value you get this way is in world coordinates.

To get the coordinate values shown in the Inspector, use localPosition instead.