-
Creator 版本:2.0.10
-
目标平台: 模拟器,其他平台暂时没有测试
*日志信息:
第一次update(dt):
Simulator: D/jswrapper (148): JS: ===333333 local position: (0.00, 0.00) world position: (360.00, 640.00)
Simulator: D/jswrapper (148): JS: ===2222222 local position: (232.30, 129.10) world position: (232.30, 129.10)
Simulator: D/jswrapper (148): JS: ===1111111111 local position: (0.00, 0.00) world position: (232.30, 129.10)
第二次update(dt):
Simulator: D/jswrapper (148): JS: ===333333 local position: (0.00, 0.00) world position: (360.00, 640.00)
Simulator: D/jswrapper (148): JS: ===2222222 local position: (232.30, 129.10) world position: (592.30, 769.10)
Simulator: D/jswrapper (148): JS: ===1111111111 local position: (0.00, 0.00) world position: (592.30, 769.10)
此处假设节点分别为111,222,333对应的日志
三个节点同处于一个prefab中,层级关系分别为:
333
|—222


|—111
- 重现方式:
- 把prefab加载到场景的根节点下
- 从日志可以看到第一次update获取到的世界坐标是不对的。
- 编辑器操作系统:Windows 10