O'Reilly logo

Panda3D 1.6 Game Engine by Dave Mathews

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Removing tasks from the task manager

We've already talked about one method for removing tasks that we don't want running anymore. We can return task.done to end a task permanently. There are other methods we can use as well, so let's talk about them now.

There may come a time when we need to remove a task from outside the task in question. In this case, task.done doesn't help us at all. The task manager comes equipped with two methods, called remove and removeTasksMatching to help us out with this. Both of these methods operate on task names. remove requires the exact name of the task we wish to remove, but removeTasksMatching can use a partial task name with wild cards to remove a group of tasks. Both methods remove all tasks that match the given ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required