Hi,
How can I set my button's state to "over" when , for example , my global state is "Home"?
Thanks in advance
Hi,
How can I set my button's state to "over" when , for example , my global state is "Home"?
Thanks in advance
OK the problem was that my button had a custom skin. So the only thing I had to to was to write
if(currentState == "Home") { mybutton.skin.setCurrentState("over",true); }