Caching.Authorize 授权
static function Authorize (name : string, domain : string, size : long, signature : string) : bool
Parameters参数
-
name(string)name The name of the cache directory on the user's disk
在用户磁盘缓存目录的名称 -
domain(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.
哪个内容使用缓存被允许运行的域名。主要是网络播放器的unity3d文件必须托管在这个域名或它的其中一个子域名。 -
size(int)size The number of bytes allocated to this cache. If this number of bytes is exceeded, further downloads to the cache will fail.
这个缓存分配的大小,以字节为单位。如果这个数字被超过,继续下载到缓存将失败。 -
signature(string)signature The authentification signature provided by Unity.
Unity所提供的认证签名。
Description描述
Authorize this unity content to use caching.
授权这个Unity内容使用缓存。
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.
如果你有一个缓存许可证,在启动时调用这个函数,带有给定参数通过Unity技术来启用它。在Unity 3.2,无许可证的内容仍然可以使用缓存功能,但是所有无许可证的内容将使用50MB的共享文件夹。
• static function Authorize (name : string, domain : string, size : long, expiration : int, signature : string) : bool
最后修改:2011年4月5日 Tuesday 9:38