轴心点是蓝色的小圆圈,锚点是白色的花瓣
1.轴心点是计算位置坐标的点,Rec Transform面板上的位置信息表示的是轴心点与其锚点的位置关系,当物体旋转时,绕轴心点旋转。
2.transform.position 的信息是轴心点相对世界原点的位置信息
Transform.position
The world space position of the Transform.
The position property of a GameObject’s Transform, which is accessible in the Unity Editor and through scripts. Alter this value to move a GameObject. Get this value to locate the GameObject in 3D world space.
3.transform.localPosition 的信息是子物体的轴心点相对父物体的轴心点的位置信息
Transform.localPosition
Position of the transform relative to the parent transform.
If the transform has no parent, it is the same as Transform.position.
1.位置关系
Rect Transform属性面板显示的是轴心点相对于其锚点的位置。
Console 面板输出的是transform.position。
2.物体旋转
锚点是轴心点计算位置的(0,0)点