- Home /
Question by
luckypants · Feb 10, 2012 at 02:53 AM ·
javascriptguigameobjectitweengui button
GUI GameObject Button?
Hi there,
I'm using a similar code to iTweens example "Animating 2D (GUI Textures)" seen here http://itween.pixelplacement.com/examples.php. I'm just wondering how I would make the animated GUI textures into buttons that change colour when hovered over.
Your help will be much appreciated!
Comment
Answer by Berenger · Feb 10, 2012 at 03:21 AM
With a script on that GUITexture, you have acces to the OnMouseEnter and co functions. TO change the colo, iTween have a ColorTo type of function.