这个错误提示表示在访问config->时,BMFontConfiguration类型是不完整的。这通常是由于在引用BMFontConfiguration之前没有正确包含相关的头文件。

要解决这个问题,你需要确保在使用BMFontConfiguration之前正确包含了相关的头文件。在Cocos2d-x 3.17及更高版本中,BMFontConfiguration的头文件是cocos2d/cocos/ui/UITextBMFont.h。请确保你的代码中包含了这个头文件,例如:

#include "cocos2d/cocos/ui/UITextBMFont.h"

这样就能正确访问config->了。

cocos20升级到cocos317后以下代码int MultilineTextkerningAmountForFirstunsigned short first unsigned short second BMFontConfiguration config访问config-时提示Member access into incomplete type cocos2dBMFontConfigurat

原文地址: https://www.cveoy.top/t/topic/hYzP 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录