Transform.position are wrong?

Hi,

I create a point. In the display of Unity, I choose its position ( 21, -0.1, -34). However, when i print in script: Debug.Log(point.position), it print: (952.9, 102.0, 785.6). I don’t understand.

Please help me! Thanks!

What do you mean by “I create a point” ?

Is it a child of another object? The inspector shows local coordinates while transform.position is global.

I had an answer. This is localPosition. Thanks.