
调用 director.runScene(arg[“name”]);
必报错,咋回事,并且报错不准确定位到天际了

参数对吗,
2.4.x director.runScene(scene) 中的scene 类型是 Scene|SceneAsset,
相比 3.x 也差不多,你的 arg.name 的类型是啥
好了,是我传错了,但我这用runScene会报2023-11-22 16:31:02 [PreviewInEditor] Cannot read property ‘push’ of null
用 director.runSceneImmediate(obj) 是好的