callBackName cannot be found&fullPathForFilename: No file found at replay.png. 解决方案
来源:互联网 发布:工作流管理系统源码 编辑:程序博客网 时间:2024/05/23 01:58
相信在大家再用cocostudio制作出来的csb文件时候都会偶尔都会出现这样的报错,要不是就是游戏中的显示的控件不全。有的图片没有显示,有的按钮回调函数并没有进行回调。下面来给大家一些解决方案。
callBackName cannot be found
我也只遇到过一次回调函数写出来,点击按钮的时候并没有调用回调函数。原因是因为你自己的csb中也许按钮和其他的图片或者控件的逻辑标签重复了,自己在用cocostudio制作界面的时候一定要注意各个控件,图片的逻辑标签一定不能重复,不然会出现很多问题,我反正是被好几次了。fullPathForFilename: No file found at replay.png.
这个问题就如上面陈述一样,找不到一些资源。其实我也很纳闷,因为每次给的路径都是正确的,但是第一次的加载csb时候就是会存在一些图片资源找不到的情况。大家只需要在appdelegate.cpp中加入如下代码:
FileUtils::getInstance()->addSearchPath(“ScoreLayer/”);
比如我的csb发布的资源就是放在resources下的ScoreLayer文件中,大家这样添加以下搜索路径应该就没有问题了。
0 0
- callBackName cannot be found&fullPathForFilename: No file found at replay.png. 解决方案
- cocos2d: fullPathForFilename: No file found at resource/Player.png. Possible missing file.
- cocos2d: fullPathForFilename: No file found at Hero.png. Possible missing file.问题解决方法
- cocos2d: fullPathForFilename: No file found at /cc_2x2_white_image. Possible missing file.
- CocosEditor-java加载图片出错cocos2d: fullPathForFilename: No file found at main.plist. Possible missing fi
- struts.xml Included file cannot be found
- struts文件异常Included file cannot be found
- struts2中Included file cannot be found问题解决
- log4j:WARN No appenders could be found for logger 解决方案
- log4j:WARN No appenders could be found for logger 解决方案
- log4j:WARN No appenders could be found for logger 解决方案
- log4j:WARN No appenders could be found for logger 解决方案
- log4j:WARN No appenders could be found for logger 解决方案
- log4j:WARN No appenders could be found for logger 解决方案
- The page cannot be found
- Skin for * cannot be found
- No CMAKE_C_COMPILER could be found.
- Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFile': 'Icon.png'
- ___19__C#手动编写Stack类,模拟栈的数据操作
- 如何防止android app被kill
- POJ 1065:Wooden Sticks
- Unicon字符串转成汉字String
- 【已解决】找不到android.support.v7.internal.app.WindowDecorActionbar
- callBackName cannot be found&fullPathForFilename: No file found at replay.png. 解决方案
- 优化Myeclipse启动速度
- 小C公众帮 获取微信公众号粉丝openid
- 恭贺新春,猴年大吉!
- 自定义tabbar(纯代码)
- fedora 23问题、fedoa 22 virtualbox 5.0安装
- ZOJ 1025:Wooden Sticks
- 继续挖坑之 NW.js (一) 介绍
- linux find 排除某目录或文件 执行