11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
动画
此内容由第三方提供商托管,该第三方提供商在未接受Targeting Cookies的情况下不允许观看视频。如果您想观看来自这些提供商的视频,请将“Targeting Cookie”的Cookie偏好设置为“是”。
1/3
More Effective Coroutines (MEC) is an improved implementation of coroutines.

When you use Unity's built-in default coroutines you will have to be very careful about how you use them or else they will allocate memory that the garbage collector later has to clean up. This can cause your app to randomly skip frames. MEC solves that issue for coroutines, while also making coroutines more powerful by running about twice as fast as Unity's default coroutines do and providing you with a host of new options that Unity's default coroutines don't have.

This is the Pro version. The free version of MEC contains the mininum set of features, whereas the Pro version contains the full set. Both versions run on the same super-fast core.

Switching between MEC coroutines and Unity's default coroutines is really easy. They can even be used side by side in the same project.

Advantages of MEC (both free and pro):

- MEC doesn't require that your class inherit from MonoBehavior in order to run a coroutine.
- Coroutines can be "tagged" with a string when created, allowing you to kill or pause coroutines individually or as a group.
- MEC contains no pre-compiled DLLs, which makes debugging easier.
- MEC contains useful extra segements, like SlowUpdate.

Additional features found in Pro:

- Additional segments: All the segments that are included in the free version, plus RealtimeUpdate, EditorUpdate, EditorSlowUpdate, EndOfFrame, and ManualTimeframe.
- Additional functions: RunCoroutineSingleton for when you want to ensure that there is only ever one instance of a particular coroutine running at a time. SwitchCoroutine changes the timing segment or tag of a coroutine while running.
- Extension methods: Delay adds a delay to the beginning of a coroutine. Append and Prepend automatically run one coroutine as soon as the previous one finishes. CancelWith extends the coroutine to automatically stop when a given condition goes out of scope. Superimpose runs two coroutines together. (which can be useful for wait or kill operations.) Hijack changes the return value of a coroutine. (which can be useful when you want to run the exact same code, but in slow motion).
- A lot of additional ways to control a coroutine from just the handle, such as changing the segment, layer, tag, or even ending it.
- Coroutines can be grouped so that when one is terminated or paused the others in the group do the same.

For more informantion, see the documentation here.

More Effective Coroutines [PRO]

(86)
1166 users have favourite this asset
(1166)
$20
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
1.2 MB
最新版本
3.13.0
最新发布日期
2025年1月13日
原始 Unity 版本
5.3.8
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR
$20