We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
ControlSwitch's mask-sprite isn't working if it's part of a texutre sheet
ControlSwitch's mask-sprite isn't working if it's part of a texutre sheet
Bug #3557 [Closed]
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
Status: | Closed | |
---|---|---|
Start date: | 2014-01-01 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | all | |
Target version: | - |
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.