-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ccb使用Custom class报错 #5
Comments
Lua中不能使用Custom class,所以请将那里设成空,把要使用的节点设定成Owner var并起名就好。 |
多谢~ |
关于CocosBuilder lua bind的方式,我觉得官方js bind那种,一个interface对应一个脚本文件,自动将成员变量绑定到脚本里,在正规使用上有一定优势,同时也支持Custom class。我这里也写了个lua的对应实现。 |
@wtyqm |
@dumganhar |
@dumganhar |
There are different way to do same thing. Just pick which one that fit you. Do more in C++ should more effective, I think. So I do more with C functions. |
ccb中Custom class不为空的情况,proxy:readCCBFromFile()这个方法会导致:
Assertion failed: (ccNodeLoadersIterator != this->mCCNodeLoaders.end()), function getCCNodeLoader, file /Users/guxin/Desktop/CocosDragonWtihLua/CocosDragonWtihLua/libs/extensions/CCBReader/CCNodeLoaderLibrary.cpp, line 67.
proxy:readCCBFromFile() 的实现部分ib->registerCCNodeLoader("", ProxyLayerLoader::loader()); 莫非因为第一个参数没有传进来注册导致的?手动增加参数后测试正常。
FYI:http://www.cocos2d-x.org/boards/18/topics/16740
The text was updated successfully, but these errors were encountered: