- Home /
animate sprite in a button event
I have buttons which will create and delete sprites.
I just want to have fade effect during the creation of sprites.
go.transform.localScale = new Vector3 (2, 2, 2);
I set the scale during the creation of sprite. If i can create the sprite in update, i can use timer and increase the scale from 0 to 2. or something else. Inside a button click how can i do that?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220611235138im_/https://answers.unity.com/themes/thub/images/avi.jpg)