cocos2d: Cast name Layer doesn't include modular name which it belongs to,please add the modular name

cocos2d-x 3.0beta

使用cocos2d-x + lua 中

local layer = tolua.cast(node, "Layer") 出现以上的,虽然还是可以正常运行,但是还是想找到问题出在哪里

搜索标题的关键字找不到,看来是lua中抛出的,那只能搜索tolua相关的函数,找到是 tolua_bnd_cast_derecated00

没有这个type?

着了最新的sample一看,已经变成cc.Layer

要不要这样

一下CCLayer,一下Layer,一下又cc.Layer

哎,名字改来改去真的服了

强迫症吗,第一个名字多好

原文地址:https://www.cnblogs.com/shadow21/p/3701354.html