找回密码
 注册帐号

扫一扫,访问微社区

caching.authorize 授权

2015-1-3 23:07| 发布者: 杨炎| 查看: 1913| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: caching.authorize 授权static functionauthorize(name: string,domain: string,size: long,signature: string) : boolparameters参数name(string)name the name of the cache directory on the user's disk在用户 ...

caching.authorize 授权

static functionauthorize(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的共享文件夹。

o static functionauthorize(name: string,domain: string,size: long,expiration: int,signature: string) : bool

文章点评