Watson Developer Cloud Unity SDK  1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
IBM.Watson.DeveloperCloud.Utilities.Runnable Class Reference

Helper class for running co-routines without having to inherit from MonoBehavior. More...

Inheritance diagram for IBM.Watson.DeveloperCloud.Utilities.Runnable:

Public Member Functions

void UpdateRoutines ()
 THis can be called by the user to force all co-routines to get a time slice, this is usually invoked from an EditorApplication.Update callback so we can use runnable in Editor mode. More...
 

Static Public Member Functions

static int Run (IEnumerator routine)
 Start a co-routine function. More...
 
static void Stop (int ID)
 Stops a active co-routine. More...
 
static bool IsRunning (int id)
 Check if a routine is still running. More...
 

Properties

static Runnable Instance [get]
 Returns the Runnable instance. More...
 

Detailed Description

Helper class for running co-routines without having to inherit from MonoBehavior.

Member Function Documentation

static bool IBM.Watson.DeveloperCloud.Utilities.Runnable.IsRunning ( int  id)
inlinestatic

Check if a routine is still running.

Parameters
idThe ID returned by Run().
Returns
Returns true if the routine is still active.
static int IBM.Watson.DeveloperCloud.Utilities.Runnable.Run ( IEnumerator  routine)
inlinestatic

Start a co-routine function.

Parameters
routineThe IEnumerator returns by the co-routine function the user is invoking.
Returns
Returns a ID that can be passed into Stop() to halt the co-routine.
static void IBM.Watson.DeveloperCloud.Utilities.Runnable.Stop ( int  ID)
inlinestatic

Stops a active co-routine.

Parameters
IDTHe ID of the co-routine to stop.
void IBM.Watson.DeveloperCloud.Utilities.Runnable.UpdateRoutines ( )
inline

THis can be called by the user to force all co-routines to get a time slice, this is usually invoked from an EditorApplication.Update callback so we can use runnable in Editor mode.

Property Documentation

Runnable IBM.Watson.DeveloperCloud.Utilities.Runnable.Instance
staticget

Returns the Runnable instance.


The documentation for this class was generated from the following file: