Game Jolt Unity API  v2.5.8
Static Public Member Functions | List of all members
GameJolt.API.Misc Class Reference

Misc API methods. More...

Static Public Member Functions

static void ClearSpriteCache ()
 Destroys all sprites in the spritecache. More...
 
static void DownloadImage (string url, Action< Sprite > callback)
 Downloads an image. More...
 
static void GetTime (Action< DateTime > callback)
 Get the server time. More...
 

Detailed Description

Misc API methods.

Member Function Documentation

◆ ClearSpriteCache()

static void GameJolt.API.Misc.ClearSpriteCache ( )
inlinestatic

Destroys all sprites in the spritecache.

◆ DownloadImage()

static void GameJolt.API.Misc.DownloadImage ( string  url,
Action< Sprite >  callback 
)
inlinestatic

Downloads an image.

Parameters
urlThe image URL.
callbackA callback function accepting a single parameter, a UnityEngine.Sprite.

◆ GetTime()

static void GameJolt.API.Misc.GetTime ( Action< DateTime >  callback)
inlinestatic

Get the server time.

Parameters
callbackA callback function accepting a single parameter, a System.DateTime.

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