【发布时间】:2014-08-16 22:36:39
【问题描述】:
以这种方式实例化 CCLabelBMFont
_targetDistanceBM =[[CCLabelBMFont alloc] initWithString:@"" fntFile:@"font.fnt"]
导致异常“由于未捕获的异常 'NSInternalInconsistencyException' 导致应用程序终止,原因:'TextureCache: fileimage MUST not be nil'”
根据许多帖子,这似乎是创建它的方式。
字体文件是使用在线工具littera创建的。
我使用的是 COCOS3D 自带的 COCOS2D 第 3 版。
【问题讨论】: