ErrorEvent {isTrusted: true, message: 'Uncaught Error: Assertion failed: ', filename: ‘http://localhost:7456/scripting/engine/bin/.cache/dev/preview/bundled/index.js’, lineno: 213016, colno: 13, …}
(匿名) @ index.js:1
asserts.ts:46 Uncaught Error: Assertion failed:
at assertIsTrue (asserts.ts:46:15)
at SkeletalAnimation.notifySkinnedMeshRemoved (skeletal-animation.ts:289:9)
at skeletal-animation.ts:332:18
at Array.forEach ()
at SkeletalAnimation._removeAllUsers (skeletal-animation.ts:331:33)
at SkeletalAnimation.onDestroy (skeletal-animation.ts:186:14)
at NodeActivator.destroyComp (node-activator.ts:269:18)
at SkeletalAnimation._onPreDestroy (component.ts:387:42)
at SkeletalAnimation._destroyImmediate (object.ts:364:18)
at Node._onPreDestroyBase (base-node.ts:1386:22)
使用的编辑器版本是? 怎么删除的?
版本是3.4.2
删除方式是直接删除根节点,例如
let playerNode= instantiate(playerPrefab);
playerNode.destroy();
简单测试没复现
使用你们官方demo示例 中的Cocos人物模型举例
前提是这个模型上有SkeletaAnimation组件和SkinnedMeshRender组件
我在模型的根节点挂上测试脚本

按下A键销毁这个节点
然后就报错了
老哥你这样试试看
可以试试合并这个 pr,记得重新编译引擎
该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。



