- Home /
Question by
Miti · Apr 20, 2014 at 12:50 PM ·
animation2d2d animationanimation script
Need script to do something when animation finished ?
Hi experts . I am newbee and it's my first question . i am working on a 2d project. i made an animation by gathering 10 sprites . How can i say in script or something els to destroy another game object when animation finished ? note that the problem is not destroy script .
Comment
Answer by Ed unity · May 05, 2014 at 05:28 PM
You will need to call Destroy on the GameObject you wish to remove: https://docs.unity3d.com/Documentation/ScriptReference/Object.Destroy.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613143135im_/https://answers.unity.com/themes/thub/images/avi.jpg)