View on Asset Store (opens in new tab)
Package details
- Latest version
- 0.1.0
- Last updated
- First released
- Unity version
- 2021.3.33 or later
- Package size
- 2.2 MB
- Files
- 33
- Favorites
- 10
- Views in the past week
- 3
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Threading
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.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 5
Threading screenshot 1
About this asset
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.
From the publisher's Asset Store listing.
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.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2021.3.33f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.