Asynchronously uploads the contents of the Shader Cache to the Accelerator.
using UnityEngine; using UnityEditor;
public class CacheServerOperations { [MenuItem("CacheServer/Upload Shader Cache")] public static void UploadShaderCache() { //Upload all Shader Cache to the Accelerator CacheServer.UploadShaderCache(); } }
The Shader Cache is what Library/ShaderCache folder.Use this method to upload all Shader Cache to Accelerator asynchronously.