Version: 1.7
LanguageEnglish
  • C#

CacheServer.UploadReference

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 UploadReference();

Description

Upload the asset dependency map of the entire project to cache server.

This method uploads asset dependency map(GUIDtoGUIDs), collected by Editor, to the cache server so that these data can be retrieved in other non-Editor situations. *Must be used in conjunction with the latest version of the Tuanjie Accelerator, and requires the cache server host and namespace to be properly configured.

using UnityEditor;
using UnityEngine;

public class UploadAssetDependency: MonoBehaviour { [MenuItem("Source/UploadReference", false, 1)] private static void UploadReference() { CacheServer.UploadReference(); } }

Simply upload full asset dependency data to the cache server.