Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

cocos2d-x 3.13.1 CheckBox的bug?

$
0
0

@1070500278 写道:

CheckBox* CheckBox::create(const std::string& backGround,
const std::string& cross,
TextureResType texType)
{
CheckBox *pWidget = new (std::nothrow) CheckBox;
if (pWidget && pWidget->init(backGround,
"",
cross,
"",
"",
texType))
{
pWidget->autorelease();
return pWidget;
}
CC_SAFE_DELETE(pWidget);
return nullptr;
}
pWidget->init中的第二个参数是 “”,当TextureResType是TextureResType::PLIST时setSpriteFrame会进入 CCASSERT(!spriteFrameName.empty(), "spriteFrameName must not be empty");

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>