Skip to content

Task/UniTask-based Main Thread dispatcher classes, no GameObjects involved

License

Notifications You must be signed in to change notification settings

gilzoide/unity-main-thread-task

Repository files navigation

Main Thread Task

Task/UniTask-based Main Thread dispatcher classes, no GameObjects involved.

Features

  • Simple to use: call MainThreadTask.Run and that's it, your action will run on the Main Thread!
  • async method MainThreadTask.RunAsync, so you can await for execution to complete
  • TaskScheduler and TaskFactory used for running Tasks on the Main Thread are available
  • UniTask-based implementation in MainThreadUniTask class, conditionally compiled if UniTask is detected in project
  • System.Action extension methods InvokeOnMainThread and InvokeOnMainThreadAsync
  • No GameObjects involved
  • Simple implementations with around 50 lines of code each

How to install

Either:

https://github.com/gilzoide/unity-main-thread-task.git#1.0.0

About

Task/UniTask-based Main Thread dispatcher classes, no GameObjects involved

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages