- Home /
Touch Button animation
what is wrong with this touch button script, error.
function OnGUI() { if (GUI.Button(Rect (10,10,150,20), "I am a Custom Button", customButton)) { animation["Play"].speed= 1.0; animation.Play("Play"); ResetAnimation(animation["Play"]); } }
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613071306im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
(Mobile) Touch anywhere on screen EXCEPT button 3 Answers
Holding GUI Button Touch to Rotate Object 0 Answers
Restart Game button for android mobile Phone help? 1 Answer
Android 3D Touch for Menu 0 Answers
Button not responsive 1 Answer