Y
Y
Yura Mailler2021-08-22 10:45:08
Unity
Yura Mailler, 2021-08-22 10:45:08

How to gradually change the size of an object, code?

Hello! How can I make the object gradually decrease after launch?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GFX Data, 2021-08-22
@Yura111

There is a nice and simple DOTween plugin solution
transform.DOScale(0f, 10f); // (scale, time)

S
Spartanec33, 2021-08-22
@Spartanec33

smoothly change transform.localScale

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question