第一次使用 场景编辑器,直接就使用示例的场景导出
然后在项目中加载:
local node = ccs.SceneReader:getInstance():createNodeWithSceneFile(“publish/FishJoy2.json”)
local scene = cc.Scene:create()
scene:addChild(node)
结果报错:
:52: ASSERT FAILED ON LUA EXECUTE: The value type isn’t Type::MAP
stack traceback:
in function <:10>
: in function ‘createNodeWithSceneFile’
求解答,不甚感激!!!