Minimum Unity Version Required:
5.5.0f3 | Asset Published Date:
26 Jan 2017 |
DescriptionWork with multiple threads easily:
Standalone builds, Windows store (UWP), webplayer, iOS and Android
// This code will execute in the main thread
}); But this asset also makes working with threads a pleasant experience:
To create a thread just use the following syntax:
Creating a thread that returns some value (an integer in this example):
Of course you will want to receive the integer:
Or, maybe, you need to show that integer to the player (the function receiving it must
be executed in the main thread):
These are just the basic features included in this package.
This package reimplements and extends the .NET System.Threading.Tasks
This namespace makes thread management easier for you by adding a class named Task
A task represents an asynchronous operation.
Typically, a Task is returned from an asynchronous function and gives the ability to
continue processing the result of the task.
A task is not tied to a particular threading model: it represents the work being done, not where it is executing.
Tasks have many advantages over other methods of asynchronous programming such as callbacks and the event model.
You can learn more about tasks in Parse's website
Tested for standalone builds, windows store (UWP), web player, iOS and Android
Full source code is included, as well as many examples.
I use this asset for my own projects, so I will keep improving and expanding it.
If you have any comments, doubts, feature request or just need some help implementing some multithreading behaviour just let me know in the forum's thread