Hi Guys
I need a rounded corner rectangle UIElement…
Is there any way to create it.
Thank you
Yashu
Hi Guys
I need a rounded corner rectangle UIElement…
Is there any way to create it.
Thank you
Yashu
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).