unity, change parent and keep localPosition or worlPosition node.parent=othernode等价于node.setParent(othernode,true),是保持世界坐标不变。 node.setParent(othernode,false)则可以实现保持node的局部坐标不变。 参考:http://tieba.baidu.com/p/4397079815