Version: 1.7
LanguageEnglish
  • C#

CacheServer

class in UnityEditor

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

Description

Class CacheServer used for uploadArtifacts.

using UnityEditor;
using UnityEngine;

public class ArtifactUploaderMenu : Editor { [MenuItem("Tools/Test/Upload Artifacts")] private static void UploadArtifacts() { var prefabFileGUIDs = AssetDatabase.FindAssets("t:prefab"); var guids = new GUID[prefabFileGUIDs.Length];

CacheServer.UploadArtifacts(guids); } }

Static Methods

CheckArtifactsCheck existence of aritifacts on cache server with given GUID of the asset.
DelayUploadQueues specified assets for upload to the CacheServer while providing precise control over upload timing behavior.
DeleteArtifactsDelete aritifacts from cache server with given GUID of the asset.
UploadArtifactsUpload the specified GUIDs to the CacheServer. If keys is empty, all assets are uploaded.
UploadReferenceUpload the asset dependency map of the entire project to cache server.
UploadShaderCacheAsynchronously uploads the contents of the Shader Cache to the Accelerator.
UploadSourceIncrementalUpload source info to cache server incrementally.
UploadSourcesUpload source info to cache server with given GUID of the asset.