FairyGUI-cocos2dx
FairyGUI-cocos2dx copied to clipboard
GImage 边缘显示有问题
cocos版本是3.17.1
左边的是直接创建的sprite
auto testSprite = cocos2d::CCSprite::create("button-normal.png"); this->addChild(testSprite); testSprite->setPosition(300, 300); testSprite->setCenterRect(Rect(20,9,14,9)); testSprite->setContentSize(Size(150, 200));
右边是UI里的GImage
原图发上来看看
用的是编辑器内置包里的图,上面代码里有图片名
这张图片我的测试结果是这样
这张图片我的测试结果是这样
cocos2d-x也是3.17.1?
3.16
3.16
刚试了下 , 确实3.16 没问题,3.17.1有问题
一个小版本号更新都有这么神奇的效果吗,迟点有时间再查查。
我的coco2dx 3.16 边缘渲染有问题