-
Creator 版本:3.6.2
-
目标平台: 浏览器
-
重现方式:在层级管理器内,新建一个空节点A,在A内增加几个Sprite子节点,删掉A,按下Ctrl+z撤回。编辑器会直接报错,重启编辑器会一直loading
-
首个报错:
TypeError: Cannot set properties of null (setting ‘_siblingIndex’)
at Node._onBatchCreated (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:160463:45)
at Node._onBatchCreated (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:160465:31)
at Scene._onBatchCreated (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:164697:31)
at Scene._load (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:164828:18)
at Director.runSceneImmediate (http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:5412:17)
at http://localhost:7456/preview-app/main.js:1:3355
at http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:99359:17
at http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:106585:9
at http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js:168288:9 -
之前哪个版本是正常的:
-
手机型号:
-
手机浏览器:
-
编辑器操作系统:
-
重现概率:
用文本编辑器打开场景文件,搜下children字段里的null,删掉就可以打开,该问题在后续版本已修复
如果没记错的话,这个bug横跨了N个版本