Unity CacheServer configuration and use

Unity CacheServer is an official tool provided by Unity.

The usefulness of Unity CacheServer: When the resources in Unity change, Unity will re-import the resources. CacheServer can cache the files generated by resource import, so that the same team members can download them directly. At the same time, there is no need to guide again when switching platforms.

The Unity version used here is 5.6pro, and the operating system is mac OS 10.13.2.

Configuration steps

  1. Download CacheServer https://unity3d.com/cn/unity/team-license
  2. After decompression, double-click the batch file of the corresponding platform. Take Mac as an example, double-click RunOSX.command
  3. When the Cache Server is ready appears, it has been successfully started (close the terminal and the CacheServer will be closed)
  4. Run Cacheserver locally, set the path to Unity -> Edit -> Preferences -> Cache Server, and select local for cache server mode.
  5. If you use another machine's CacheServer, set the path to Unity -> Edit -> Preferences -> Cache Server, select remote for the cache server mode, fill in the corresponding Server IP, and click Check Connection to prompt the connection to be successful. That's it.

Instructions for use:

  • The CacheServer host can be set.
    • Maximum Cache Size (GB): The maximum capacity of the cache. My default here is 10 G
    • Custom cache location: Custom cache location. Can be set to a larger partition.
    • Cache size: The cached size. The cache can be refreshed and cleared manually.
    • Cache Folder Location: current cache address
  • It is best to install a relatively large SSD on the host, with large capacity and large bandwidth.
  • 最好使用Linux或Mac OSX: he Windows file system is not particularly well optimized for how the Asset Cache Server stores data and problems with file locking on Windows can cause issues that don’t occur on Linux or Mac OSX.

FAQ:

  • How to start CacheServer automatically after booting: Please refer to http://blog.csdn.net/wuming22222/article/details/51714111

  • What conditions will regenerate import data:

    • Changes to the resource file itself
    • Changes in settings for import operations
    • Asset importer version changes
    • Platform changes
  • CacheServer (cache server) performance is very poor, and even suspended animation.

    • When there are large projects in the CacheServer (cache server) and multiple computers are connected to use at the same time, the console of the server may be flooded with a large amount of Debug information, which will slow down the running speed of the cache server (or even crash). ).
    • Modify the CacheServer.js and LegacyCacheServer.js files and set the value of LOG_LEVEL to 2. The meaning of setting it to 2 is to display only errors and warnings, not Debug information.

Documentation

unity doc https://docs.unity3d.com/Manual/CacheServer.html


If there are any mistakes, please point them out.

email:dxmdxm1992#gmail.com

blog: http://blog.csdn.net/david_dai_1108

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325451749&siteId=291194637