找回密碼
 注冊帳號

掃一掃,訪問微社區

caching.authorize 授權

2015-1-3 23:07| 發布者: 楊炎| 查看: 1875| 評論: 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

文章點評
女校游泳队彩金