How to know if the object is already is tweening?

Is there a way to know if the object already used by transition.to ?

Without knowing how you’re creating your objects or what your usecase is for whether your objects are tweening, you could add the below code to your generation logic:

object.trans = transition.to...

How you apply that depends on your particular implementation, though.

i thought there is something like

object.hasTransition

the point is, using

object.trans = transition.to

i have to catch onComplete function and set object.trans to nil.

but ok, that’s the way too. thanks!

Without knowing how you’re creating your objects or what your usecase is for whether your objects are tweening, you could add the below code to your generation logic:

object.trans = transition.to...

How you apply that depends on your particular implementation, though.

i thought there is something like

object.hasTransition

the point is, using

object.trans = transition.to

i have to catch onComplete function and set object.trans to nil.

but ok, that’s the way too. thanks!