Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

1/6
A light weight library to dispatch actions and functions to the Unity3D main-thread, including custom awaiters for synchronisation to the main-thread or background threads.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2021.3.33f1
Compatible
Compatible
Compatible
Description

Threads is a light weight library to dispatch actions and functions to the Unity3D main-thread. Threads can be used at both Editor-time and Run-time straight out of the box. No initialization is required. 


Additionally, Threads provides two custom awaiters to synchronize between the main-thread and background-threads. By using these awaiters code can be simplified which makes the code much more readable and maintainable.

Technical details

The dispatcher synchronizes with Unity during the Update loop or EditorApplication.Update loop. When playmode is toggled in the editor, the actions in the queue will be purged, and thus will never complete! Threads will automatically detect when switching between editor-mode and play-mode.


When using the custom awaiters the actions will be synchronized to the main-thread by using the UnitySynchronizationContext. This will dispatch on the main-thread during the WaitForFixedUpdate event in the Unity Event Loop.

Threading

(not enough ratings)
9 users have favourite this asset
(9)
FREE
License type
File size
2.2 MB
Latest version
0.1.0
Latest release date
Dec 27, 2024
Original Unity version
2021.3.33
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR