What is the code I would use to make a UI button start an animation?
I am using Vuforia to make an AR app. I have an object which I want, once it has appeared on screen, if pressed the UI button will animate and explode the multiple objects out so you can see all the pieces individually. I made the objects and animation in 3D Studio Max which imported beautifully. I just don't know how to code very well, and this is the only thing I need the app to do. All I want it to do is if I press the UI button it animates, if I press it again it just reverses back. Or even if the button is held down it explodes out and stays exploded until let go.
Answer by Lucas7CL · Mar 27, 2017 at 02:59 PM
I think no one will help you, just google it man! "unity start animation" Then when coding the button, google "unity UI Button". Cheers!
Your answer
![](https://koobas.hobune.stream/wayback/20220612113905im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Changing the image of a button with a script 1 Answer
Best way to handle multiple buttons? (C#) 3 Answers
UI buttons won't recognize script 0 Answers
How to remove flashing screen when changing Canvas Render Modes 0 Answers
Button Displacement 0 Answers