万一onload里东西多了没有进度条岂不是要等很长时间

loadingFun(sceneName, callback) {
        let info = cc.director._getSceneUuid(sceneName);
        if (info) {
            cc.director.emit(cc.Director.EVENT_BEFORE_SCENE_LOADING, sceneName);
            cc.loader.load({
                    uuid: info.uuid,
                    type: 'uuid'
                },
                (completedCount, totalCount, item) => {
                    console.log(completedCount + '/' + totalCount);//进度
                },
                () => {
                    if (this._completedCount >= this._totalCount && this._completedCount > 0) {
                        callback();//回调
                    }
                }
            )
        }
    },

可以参考下

是啊啊

用了下这个代码 发现进入不了回调