Projects > cpp > Issues > Bug #3557

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

ControlSwitch's mask-sprite isn't working if it's part of a texutre sheet

Bug #3557 [Closed]
zilluss 2014-01-01 15:47 . Updated almost 9 years ago

When your mask sprite for the ControlSwitch is part of a texture sheet, the masking will not work correctly. One workaround is to save the mask-texture in a separate file.
Another solution is to render the mask sprite to a RenderTexture and use the rendered texture as the mask texture. I have successfully implemented this fix and can commit the patch, after the bug has been confirmed.

walzer@cocos2d-x.org 2014-10-08 02:53

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8293

Atom PDF

Status:Closed
Start date:2014-01-01
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:all
Target version:-