Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Animation
1/1
This package is an upgrade for More Effective Coroutines that allows you to switch back and forth between the main thread and external threads using the same yield return syntax you are used to.

Most of the things you can do in Unity are best done using coroutines. However, there are a couple of things that are better done using threads.

Some things you can do in a separate thread

- Saving or disk access of any kind without causing frame rate jitters.
- Doing intense number crunching, like AI decisions or A* pathing without effecting the frame rate.
- Swarming or moving a large number of small objects according to independent logic.

Some things you cannot do in a separate thread

- You cannot read or write the values of anything in your scene. This includes gameObjects, transforms, buttons, gui text components, etc.
- You cannot query the Random class for a random number.

This module gets around the limitations of threads by allowing you to write a coroutine that gathers all the data it needs and then switches to a separate thread to act on that data. Threads are automatically pooled and a lot of the messiness of threads is avoided.

This package uses MEC, and comes with the free version included. This package is also designed to work with MEC Pro. If you have Pro just replace the MEC free files with those from pro.

Question: How does threading compare to ECS?
Answer: ECS will perform better than threading in all cases. In a lot of cases it will perform A LOT better. This is not because this, or any other, threading framework is slow. It's due to the fact that threading is used by ECS automatically, along with a bunch of other optimizations that further increase performance.

However, most people will find this threading framework to be a lot easier to use than ECS, and this framework is still an excellent way to implement saving your game without causing a frame rate hitch.

MEC Threaded

(12)
153 users have favourite this asset
(153)
$10
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
964.2 KB
Latest version
3.08.0
Latest release date
Aug 27, 2019
Original Unity version
5.3.8
Support
Visit site
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