Discussions

Ask a Question
Back to all

Importing csb into JS project

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.