Hi,
Im using transition.to on one object multiple times and i want to check if transition is already running before i start another one. Do you have any ideas ?
Thanks
Hi,
Im using transition.to on one object multiple times and i want to check if transition is already running before i start another one. Do you have any ideas ?
Thanks
Hi @mladenjacket,
Probably the best way is to set a general “onComplete” listener function for each transition, and make each transition a property of the object itself. Within the listener function, check if the object has that property. If yes, cancel the transition and set the property to nil. If not, return false.
Hope this helps,
Brent Sorrentino
Hi @mladenjacket,
Probably the best way is to set a general “onComplete” listener function for each transition, and make each transition a property of the object itself. Within the listener function, check if the object has that property. If yes, cancel the transition and set the property to nil. If not, return false.
Hope this helps,
Brent Sorrentino