1.某个localPosition

Vector3 homePosIn = new Vector3(float.Parse(lookIn[0]), float.Parse(lookIn[1]), float.Parse(lookIn[2]));

2.得到相对父物体的世界坐标

Vector3 homePosInWorld = m_curHome.transform.TransformPoint(homePosIn);

3.转换为相对B的localPosition

Vector3 homePosInHomeMgrLocal = m_homeAllPar.transform.InverseTransformPoint(homePosInWorld);