cocos2d::ui::Button and shadow

Hi,

How can I add shadow to button?
I found cocos2d::ui::Text::enableShadow() but there is no such method for cocos2d::ui::Button.
How can I get shadow effect for cocos2d::ui::Button?

Regards,
CHP

button->getTitleRenderer()->enableShadow();

1 Like