您的位置:首页 > 移动开发 > Unity3D

unity, change parent and keep localPosition or worlPosition

2015-08-07 15:16 543 查看
node.parent=othernode等价于node.setParent(othernode,true),是保持世界坐标不变。

node.setParent(othernode,false)则可以实现保持node的局部坐标不变。

参考:http://tieba.baidu.com/p/4397079815
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: