Back to Writing
NOTESunitytransformdebugging
Unity Debugging: transform.position vs localPosition
October 1, 2020•Updated Feb 17, 2026

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.