SK.AddStepper

static Object AddStepper(Type type)

This instantiates and registers an instance of the IStepper type provided as the generic parameter. SK will hold onto it, Initialize it, Step it every frame, and call Shutdown when the application ends. This is generally safe to do before SK.Initialize is called, the constructor is called right away, and Initialize is called right after SK.Initialize, or at the start of the next frame before the next main Step callback if SK is already initialized.

   
Type type Any object that implements IStepper, and has a constructor with zero parameters.
RETURNS: Object Just for convenience, this returns the instance that was just added.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!