Log in or register to post comments

Button for play and pause the animation

May 17, 2012 - 7:58pm #1

hi guys..

I want to create two buttons are used for play and pause the animation of an object .. but I do not understand how to make it ..
does anyone know how to make buttons for play and pause the animation?

if anyone can, will tell how to make it? thank u :)

Re: Button for play and pause the animation

May 18, 2012 - 5:59am #2

@waldroid

if (GUI.Button(Rect(10,10,50,50),"play"))
animation.Play();
if (GUI.Button(Rect(10,70,50,30),"stop"))
animation.stop();

it`s better to ask for this in unity forums

Log in or register to post comments