在使用FairlGUI × Cocos Creator3.x时,如果有自定义分包,不是放在resources下的,可以这样加载:
let MainRes = null;
cc.assetManager.loadBundle("MainRes", (err, res) => {
MainRes = res;
fgui.UIPackage.loadPackage(MainRes, "UI/MainPkg", this.onUILoaded.bind(this));
});
在使用FairlGUI × Cocos Creator3.x时,如果有自定义分包,不是放在resources下的,可以这样加载:
let MainRes = null;
cc.assetManager.loadBundle("MainRes", (err, res) => {
MainRes = res;
fgui.UIPackage.loadPackage(MainRes, "UI/MainPkg", this.onUILoaded.bind(this));
});