hello, I was wondering if the animation files that we have created works only when the cursor is placed on a gui button below it, just like the change in color whenever the cursor is placed on the gui button. If yes, do let me know.
Thank you!
hello, I was wondering if the animation files that we have created works only when the cursor is placed on a gui button below it, just like the change in color whenever the cursor is placed on the gui button. If yes, do let me know.
Thank you!
I figured it out!
function OnMouseOver() {
animation.Play("New Animation");
}
function OnMouseExit() {
animation.Stop("New Animation");
}
Where "New Animation is the name of my anim. 1st function starts the animation when mouse is placed on the animation object and stops when it is moved away from it.