Rounded Corner in CCLayer

Rounded Corner in CCLayer
0.0 0


Hi Guys

I need a rounded corner rectangle UIElement…
Is there any way to create it.

Thank you


CCLayer does not render any shape, it is not a UI element… but you can get its content size, and draw a rounded corners asset at its corners if you need to.


A good way of doing UIs in cocos is using CCScale9Sprites (allows you to have special assets for the corners) with a visual editor (like cocosbuilder).