Hi all
I use button with transition in cocos creator.
But everytime my mouse over button. Button have black border like image below.
Anyone know how to fix this.
Thank !
Hi all
I use button with transition in cocos creator.
But everytime my mouse over button. Button have black border like image below.
Anyone know how to fix this.
Thank !
I experienced the same thing, but only in Browser/Canvas mode. My buttons have no transition at all.
Best regards,
Zsolt
Unfortunately I did not find any solution yet…
I am not sure if this is your problem, but if your button sprite is packed into one big atlas or sprite sheet. Try to have the border between each image at least 2px
Thank you. I try add 2px border with Texture Packer but this issue still persists.
The upper button has the strange effect, when I move the mouse cursor over it. It has scale transition effect, and the Hover Sprite Frame is “none”.
if(cc._renderType === cc.game.RENDER_TYPE_CANVAS){
cc.renderer.enableDirtyRegion(false);
}
fix this issues
I get the following from the Simulator:
Simulator: 541:TypeError: cc.renderer is undefined
And from the Chrome browser:
Uncaught TypeError: cc.renderer.enableDirtyRegion is not a function
Sorry. Use cc._renderType
if(cc._renderType === cc.game.RENDER_TYPE_CANVAS){
cc.renderer.enableDirtyRegion(false);
this.renderType.string = ‘Canvas’;
}
Thanks, it works now!