- Home /
Cursor appearance change when mouse over a GUI button
Hello, I can't figure that out... does anyone happen to know a way to change cursor appearance when the mouse is over a GUI button? I was looking at onHover and hover but these seem to change only the color of the button... I have learnt how to change the cursor appearance on GUI but don't know how to change it when the mouse is over a button. Please, help! :)
Answer by Berenger · May 01, 2012 at 02:52 PM
There isn't any signals sent when the mouse is hover a button, as far as I know. You'll need to check every rects concerned. Could store those rects in an array and go through it in update, or create a class that draw a button and send the hover message. Or improvise :)
Answer by Zen_Hap · May 30, 2016 at 02:45 PM
If you go to the UI button settings, select animation instead of color change. Then because the text is a child of the button, make the text change on hover, then make the animation play once and then stop by unticking loop time. :)
I hope I helped! :)