As the topic asks, is there any way to do it?
I saw that sharedScheduler has option unscheduleAllTimers, but it says there it's not safe to use it if you don't know what you're doing. So if I use it, do I know what I am doing or not?
Any way to unschedule all schedulers?
(4 posts) (2 voices)-
Posted 2 years ago #
-
Ok just tested unscheduleAllTimers and it's really not safe, it obviously unschedule everything in cocos not only my schedulers as I thought.
So, any option to get list of all my schedules?
Posted 2 years ago # -
Umm CocosNode has an option
[self stopAnimation];I think this unschedules all of the active schedulers in that node.
I'm may be wrong, but I use it and it works basically...
There's also[[Director sharedDirector] stopAllAnimation];which stops everything...
Update us about the situation.
~Natan Avra.Posted 2 years ago # -
Suppose you referred to
stopActionandstopAllActions, right?
But I think one thing is Action and another is scheduled event. Anyway, right now I am unschediling one by one schedule and it works. I just wanted to know is there any way to get list of all schedules that I initiated in the scene/layer...Posted 2 years ago #
Reply
You must log in to post.