不管你是個人還是團隊,如果你的資源很多, 而且經常切換平台, 那你試試這個吧~~秒秒鍾實現平台間的轉換。
cache server主要用於資源修改后的自動重新導入功能,保證所見即所得,方便資源的重新獲取與導入,尤其在PC與手機端來回切換的時候,對機器要求:內存夠大,快速硬盤和網絡。測試過程:
1下載地址:http://unity3d.com/unity/collaboration/ ,然后安裝http://game.ceeger.com/Manual/AssetCacheServer.html 上面的描述進行就好了
2 運行腳本 ,會在本地建立一個cache文件夾,作為數據存儲位置
----------------------------------------------------------------------------------------------------
一、
當Unity工程中的一些資源文件被修改后,Unity探測到這些修改就會重新導入這些資源文件,並隨后將產生的導入數據以自己的內部格式存放起來。而我們知道導入這些資源文件是很耗時間的,並且不同的平台導入數據也是不同的。
由此CacheServer就是要將這些產生的導入數據存儲起來,當需要的時候直接從CacheServer取出來,而無需Unity本地再次生成導入數據。例如自己導入資源文件時會產生導入數據,自動上傳到CacheServer,項目團隊中其他成員導入資源文件后Unity不會產生導入數據,而會從CacheServer直接下載這些已經生成好的導入數據,從而大大縮短了大型團隊導入資源的時間。使用Cache Server,不同平台之間的切換需要的時間顯著減少,從而提高了制作速度。
二、部署CacheServer
自己用可以部署到自己的主機上,團隊用可以考慮找一台主機去部署。CacheServer默認存儲最大50GB,主機最好硬盤快
http://blog.csdn.net/wuming22222/article/details/51713758
http://docs.unity3d.com/Manual/CacheServer.html
-----------------------------------------------------------------------------------------------------------------
博主注:開啟一個cache server可供好多項目使用,只要unity版本一致就行(cache server隨unity一同發布)
第一個需要轉換和上傳,省不了時間,第二次或第二個人就好了,只用下載,切換1-3分鍾左右

-----------------------------------------------------------------------------------------------------------------
CacheServer(緩存服務器)的性能很差,甚至會假死
- CacheServer(緩存服務器)的性能很差,甚至會假死。
Installing the Cache Server as a service
The provided .sh and .cmd scripts must be set up as a service on the server. The Cache Server can be safely killed and restarted at any time, since it uses atomic file operations.
New and legacy Cache Servers
Two Cache Server processes are started by default. The legacy Cache Server works with versions of Unity prior to version 5.0. The new Cache Server works with versions of Unity from 5.0 and up. See Cache Server configuration, below for details on configuring, enabling, and disabling the two different Cache Servers.
Cache Server configuration
If you simply start by executing the script, it launches the legacy Cache Server on port 8125 and the new Cache Server on port 8126. It also creates “cache” and “cache5.0” directories in the same directory as the script, and keep data in there. The cache directories are allowed to grow to up to 50 GB by default. You can configure the size and the location of the data using command line options, like this:
./RunOSX.command --path ~/mycachePath --size 2000000000
or
./RunOSX.command --path ~/mycachePath --port 8199 --nolegacy
You can configure the Cache Server by using the following command line options:
- Use
--portto specify the server port. This only applies to the new Cache Server. The default value is8126. - Use
--pathto specify the path of the cache location. This only applies to the new Cache Server. The default value is./cache5.0. - Use
--legacypathto specify the path of the cache location. This only applies to the legacy Cache Server. The default value is./cache. - Use
--sizeto specify the maximum cache size in bytes for both Cache Servers. Files that have not been used recently are automatically discarded when the cache size is exceeded. - Use
--nolegacyto stop the legacy Cache Server starting. Otherwise, the legacy Cache Server is started on port8125.
