All Projects → coryleach → Unityasync

coryleach / Unityasync

Licence: apache-2.0
Task and Async Utility Package for Unity. Start co-routines from anywhere.

Projects that are alternatives of or similar to Unityasync

Upmgitextension
This package extends the UI of Unity Package Manager (UPM) for the packages installed from git repository.
Stars: ✭ 438 (+655.17%)
Mutual labels:  unity, unity3d, package, package-manager
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+1063.79%)
Mutual labels:  unity, unity3d, unity-scripts, unity3d-plugin
Awesome Unity Open Source On Github
A categorized collection of awesome Unity open source on GitHub (800+)
Stars: ✭ 1,124 (+1837.93%)
Mutual labels:  unity, unity3d, unity-scripts, unity3d-plugin
Unitylibrary
📚 Library of all kind of scripts, snippets & shaders for Unity
Stars: ✭ 1,968 (+3293.1%)
Mutual labels:  unity, unity3d, unity-scripts, unity3d-plugin
Savegamepro
A Complete and Powerful Save Game Solution for Unity (Game Engine)
Stars: ✭ 30 (-48.28%)
Mutual labels:  unity, unity3d, unity-scripts, unity3d-plugin
Savegamefree
Save Game Free is a free and simple but powerful solution for saving and loading game data in unity.
Stars: ✭ 279 (+381.03%)
Mutual labels:  unity, unity3d, unity-scripts, unity3d-plugin
Csharp Eval Unity3d
C# Expression Parser for Unity3D
Stars: ✭ 102 (+75.86%)
Mutual labels:  unity, unity3d, unity-scripts, unity3d-plugin
Gitdependencyresolverforunity
This plugin resolves git url dependencies in the package for Unity Package Manager. You can use a git url as a package dependency!
Stars: ✭ 126 (+117.24%)
Mutual labels:  unity, unity3d, package, package-manager
Apple Signin Unity
Unity plugin to support Sign In With Apple Id
Stars: ✭ 228 (+293.1%)
Mutual labels:  unity, unity3d, unity-scripts, unity3d-plugin
Unityfx.async
Asynchronous operations (promises) for Unity3d.
Stars: ✭ 143 (+146.55%)
Mutual labels:  async, coroutine, unity, unity3d
Unity Script Collection
A maintained collection of useful & free unity scripts / library's / plugins and extensions
Stars: ✭ 3,640 (+6175.86%)
Mutual labels:  unity, unity3d, unity-scripts, unity3d-plugin
Actors.unity
🚀Actors is a framework empowering developers to make better games faster on Unity.
Stars: ✭ 437 (+653.45%)
Mutual labels:  unity, unity3d, unity-scripts
Unity Executionorder
A collection of attributes to control the execution order of your scripts in Unity from your source code.
Stars: ✭ 48 (-17.24%)
Mutual labels:  unity, unity3d, unity-scripts
Opencvforunity
OpenCV for Unity (Untiy Asset Plugin)
Stars: ✭ 359 (+518.97%)
Mutual labels:  unity, unity3d, unity3d-plugin
Jengine
JEngine是针对Unity开发者设计的开箱即用的框架,封装了强大的功能,小白也能快速上手,轻松制作可以热更新的游戏 | JEngine is a streamlined and easy-to-use framework designed for Unity Programmers which contains powerful features, beginners can start up quickly and making hot update-able games easily
Stars: ✭ 564 (+872.41%)
Mutual labels:  unity, unity3d, unity3d-plugin
Unity3d Rainbow Folders
This asset allows you to set custom icons for any folder in unity project browser.
Stars: ✭ 519 (+794.83%)
Mutual labels:  unity, unity3d, unity3d-plugin
Spritedicing
Unity extension for reusing sprite texture areas
Stars: ✭ 589 (+915.52%)
Mutual labels:  unity, unity3d, unity3d-plugin
Crystalai
A Utility AI for C# and Unity
Stars: ✭ 328 (+465.52%)
Mutual labels:  unity, unity3d, unity3d-plugin
Unitymeshsimplifier
Mesh simplification for Unity.
Stars: ✭ 592 (+920.69%)
Mutual labels:  unity, unity3d, unity3d-plugin
Lunar Unity Console
High-performance Unity iOS/Android logger built with native platform UI
Stars: ✭ 628 (+982.76%)
Mutual labels:  unity, unity3d, unity3d-plugin

Gameframe.Async 👋

Build Status Codacy Badge GitHub release (latest by date including pre-releases) openupm license

twitter

Async task utility package for Unity
Helper methods for starting tasks on the Unity thread.
Start and await coroutines from any thread.

Quick Package Install

Using UnityPackageManager (for Unity 2019.3 or later)

Open the package manager window (menu: Window > Package Manager)
Select "Add package from git URL...", fill in the pop-up with the following link:
https://github.com/coryleach/UnityAsync.git#1.0.4

Using UnityPackageManager (for Unity 2019.1 or later)

Find the manifest.json file in the Packages folder of your project and edit it to look like this:

{
  "dependencies": {
    "com.gameframe.async": "https://github.com/coryleach/UnityAsync.git#1.0.4",
    ...
  },
}

Using OpenUPM

The package is available on the openupm registry. It's recommended to install it via openupm-cli.

openupm add com.gameframe.async

Quick Start

Start and Await a coroutine from anywhere

//Start a coroutine from anywhere without a monobehaviour
//Your coroutine will run on the main thread
var task = CoroutineRunner.RunAsync(MyCoroutine());
//You can await the returned task which will complete when the coroutine is done
await task;

Start a Task on the main unity thread from anywhere

//This will execute MyMethod on the main Unity thread
var task = UnityTaskUtil.RunOnUnityThreadAsync(MyMethod);
//A task is returned that you can await
await task;

Switch between Main thread and Background thread in any task

// Currently on main thread
await Awaiters.BackgroundThread;
//You should now be on a background thread

//Await one frame
await Awaiters.NextFrame;

//Currently on a background thread
await Awaiters.MainUnityThread;
//Task is now running on the Unity main thread

Author

👤 Cory Leach

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by Gameframe.Packages

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].