Transition and Timers

Do I still need to nil/cancel transition and timers even if they’re done executing?

I would do it as a good practice. Because runtime error will occur if these transitions try to run later on an ‘empty’ asset.

Sorry late reply.

But what if I just call ‘transition.cancel’ on scene exit, would it be fine as well? The documentation states that it will cancel all transitions in progress, when called with no parameters.

Yes that would be fine, you might want to prepare yourself a ready function that you would copy paste on every scene to cancel such transitions/timers/any even listeners still in scene etc.

Thanks! That was what I was planning! :))

Cheers!

I would do it as a good practice. Because runtime error will occur if these transitions try to run later on an ‘empty’ asset.

Sorry late reply.

But what if I just call ‘transition.cancel’ on scene exit, would it be fine as well? The documentation states that it will cancel all transitions in progress, when called with no parameters.

Yes that would be fine, you might want to prepare yourself a ready function that you would copy paste on every scene to cancel such transitions/timers/any even listeners still in scene etc.

Thanks! That was what I was planning! :))

Cheers!