Discussions
Importing csb into JS project
over 10 years ago by MaxDrozd
Created a simple Cocos Studio project. Published it to csb.
using this code to import from ctor of cc.Layer
var cssResource = ccs.load("resource/MainScene.csb");
this.addChild(cssResource.node);
File path is correct, but I get Uncaught TypeError: Cannot read property '_localZOrder' of undefined crash.