Caching.Authorize Manual     Reference     Scripting  
Scripting > Runtime Classes > Caching
Caching.Authorize

static function Authorize (name : string, domain : string, size : long, signature : string) : bool

Parameters

NameDescription
string name The name of the cache directory on the user's disk
string domain The domain on which the content using caching is allowed to run. The main unity3d file of the webplayer must be hosted on this domain or one of it's subdomains.
int size The number of bytes allocated to this cache. If this number of bytes is exceeded, further downloads to the cache will fail.
string signature The authentification signature provided by Unity.

Description

Authorize this unity content to use caching.

If you have a caching license, call this function at startup with the parameters given to you by Unity Technologies to enable it. Starting with Unity 3.2, unlicensed content will still be able to make use of the Caching functionality, but it will use a 50 MB cache folder shared with all other unlicensed content.

static function Authorize (name : string, domain : string, size : long, expiration : int, signature : string) : bool