cocos2d-js-v3.2 + Cocos Code IDE v1.2.0 + cocos studio 2.0.6
用studio拼了一个 320*480 的界面,读取时候报错:
libpng warning: iCCP: known incorrect sRGB profile
cocos2d: Get data from file(UI/MenuLayer.csb) failed!
cocos2d: GetParseError Text only contains white space(s)
cocos2d: Read design size error!
Assertion failed: (IsObject()), function FindMember, file /Users/honghui/Documents/cocos/PrebuiltRuntimeJs/frameworks/runtime-src/proj.ios_mac/…/…/js-bindings/cocos2d-x/external/json/document.h, line 620.
config.json
"init_cfg": {
"isLandscape": false,
"isWindowTop": false,
"name": "CocosJSGameTest",
"width": 320,
"height": 480,
"entry": "main.js",
"consolePort": 6050,
"uploadPort": 6060,
"debugPort": 5086,
"forwardConsolePort": 10088,
"forwardDebugPort": 10086,
"forwardUploadPort": 10090
},
MenuLayer.js:
var MenuLayer = cc.Layer.extend({
ctor:function(){
this._super();
var root =ccs.uiReader.widgetFromJsonFile("UI/MenuLayer.csb");
},
});
不知道在哪儿修改