Click or drag to resize

Archon.SwissArmyLib.Coroutines Namespace

[Missing <summary> documentation for "N:Archon.SwissArmyLib.Coroutines"]

Public classBetterCoroutines
A very similar but more performant alternative to Unity's coroutines. A coroutine do not belong to any gameobject and therefore doesn't depend on their life cycle. You can however optionally link the coroutines to a gameobject or component. Which update loop they're part of can be specified when they're started. They also allocate less garbage (especially with the yield instructions). Just as with Unity's coroutines you can yield a WWW and AsyncOperation to wait for them to finish. Instead of using Unity's YieldInstructions you should use the pooled replacements:
Public classBetterCoroutinesExtensions
A bunch of helpful extensions for starting and stopping coroutines.
Public interfaceIPoolableYieldInstruction
Represents a yield instruction that can be freed when the coroutine they're running in is despawned.