Publisher | fivefingergames |
---|---|
File size | 274.22kB |
Number of files | 11 |
Latest version | 1 |
Latest release date | 2020-11-19 11:34:14 |
First release date | 2020-11-19 11:34:14 |
Supported Unity versions | 2018.4.2 or higher |
UPromises is an Unity plugin that brings JS-like Promises to Unity.
Since the release of Unity 2017 Developers were able to use the powerful async/await feature in Unity.
This allows developers to easily combine asynchronous tasks without the need of CoRoutines to do the heavy lifting. As async/await does allow for arbitrary return values without the need of "global" variables this results in a much cleaner and easier to understand codebase.
However the Task class C# provides isn't exactly easy to use and misses a few core features one might expect if coming from JS knowing their approach with promises.
For this reason we made JS-like Promises in C#!
Documentation