← 返回首页
GitHub - gilzoide/unity-main-thread-task: Task/UniTask-based Main Thread dispatcher classes, no GameObjects involved · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gilzoide/unity-main-thread-task

Go to file
Code

Repository files navigation

More items

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

4 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Footer

© 2026 GitHub, Inc.