Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
Caching.Authorize 授权
# [Caching](Caching.html).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
da
2022年5月17日 13:19
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码