Click or drag to resize

CoroutineT Class

A wrapper for Coroutines so it is easier to get information about them and control them at runtime
Inheritance Hierarchy
SystemObject
  DustProductions.CoreCoroutineT

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Coroutine<T>

Type Parameters

T
The type of the value if the IEnumerator, can pass in whatever you want if you don't intend to check it

The CoroutineT type exposes the following members.

Properties
  NameDescription
Public propertyException
If there was an exception thrown, this is that exception.
Public propertyHasException
True if we have thrown an exception during execution.
Public propertyIsActive
Is this coroutine running?
Public propertyIsCancelled
True if the coroutine was cancelled externally.
Public propertyThisCoroutine
A reference to the current actual coroutine
Public propertyValue
Gets the current value of the IEnumerator, if one exists, otherwise it's null.
Top
Methods
  NameDescription
Public methodCancel
Call this to stop the coroutine, will throw an exception when the coroutine leaves a yield statement
Top
See Also