Version: 1.7
LanguageEnglish
  • C#

CacheServer.UploadShaderCache

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void UploadShaderCache();

Description

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.