- Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Milestone
Description
- cocos2d-x version: 3.14
- devices test on: linux, android
- developing environments
- NDK version: r10e
- Xcode version:
- VS version:
- browser type and version:
A new project on 3.13.1 is ok, but a new project on 3.14 doesn't set opacity. The code I used in HelloWorldScene.cpp on both projects is this :
SpriteFrameCache::getInstance()->addSpriteFramesWithFile("buttons.plist"); auto button = ui::Button::create(); button->loadTextureNormal("buttons/play-big", ui::Widget::TextureResType::PLIST); button->setPosition(Vec2(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y)); button->setOpacity(100); addChild(button);
Steps to Reproduce:
- Create a new project
- Add a spritesheet
- Create button and set opacity
Metadata
Metadata
Assignees
Labels
No labels