Friday, June 19, 2020

[Unity tips] Clear DOTwenn if it doesn't work after loading another sccene

DOTween didn't work after loading another scene

I used DOTween for "Fly High, Surfing Duck!" to rotate the duck in the air like the following tweet:
I used the following code to rotate the duck:
transform.DOLocalRotate(new Vector3(0, 0, 360f), 1f, RotateMode.FastBeyond360)
It didn't work after reloading the scene by the following code:

Use DOTween.Clear before reloading another scene

I could fix this problem by putting the following code before loading another scene:

No comments:

Post a Comment

[Blog Tips] How to embed twitter timeline in your blog and limit the tweet number

How to embed twitter timeline in your blog I embedded the timeline of twitter to my blog so I write how to do it. At first, you have to ge...