Click or drag to resize

BetterCoroutinesExtensions Class

A bunch of helpful extensions for starting and stopping coroutines.
Inheritance Hierarchy
SystemObject
  Archon.SwissArmyLib.CoroutinesBetterCoroutinesExtensions

Namespace:  Archon.SwissArmyLib.Coroutines
Assembly:  Archon.SwissArmyLib (in Archon.SwissArmyLib.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static class BetterCoroutinesExtensions
Request Example View Source

The BetterCoroutinesExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberStartBetterCoroutine(Object, IEnumerator, UpdateLoop)
Starts a new coroutine.
Public methodStatic memberStartBetterCoroutine(Object, IEnumerator, Int32)
Starts a new coroutine.
Public methodStatic memberStartBetterCoroutineLinked(GameObject, IEnumerator, UpdateLoop)
Starts a new coroutine with its lifetime linked to this gameobject. The coroutine will be stopped when the linked gameobject is disabled or destroyed.
Public methodStatic memberStartBetterCoroutineLinked(GameObject, IEnumerator, Int32)
Starts a new coroutine with its lifetime linked to this gameobject. The coroutine will be stopped when the linked gameobject is disabled or destroyed.
Public methodStatic memberStartBetterCoroutineLinked(MonoBehaviour, IEnumerator, UpdateLoop)
Starts a new coroutine with its lifetime linked to this component. The coroutine will be stopped when the linked component is disabled or destroyed.
Public methodStatic memberStartBetterCoroutineLinked(MonoBehaviour, IEnumerator, Int32)
Starts a new coroutine with its lifetime linked to this component. The coroutine will be stopped when the linked component is disabled or destroyed.
Public methodStatic memberStopBetterCoroutine
Stops a running coroutine prematurely. This will stop any child coroutines as well.
Top
See Also