Version: 1.7
LanguageEnglish
  • C#

CacheServer.UploadSourceIncremental

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 UploadSourceIncremental(bool force);

Parameters

force Force of uploading source data to the CacheServer, even if the upload option in CacheServer setting is not enabled.

Description

Upload source info to cache server incrementally.

The Editor keeps modified assets source since last upload. Use this method to upload source info of these assets(Shutting down the Tuanjie Editor will result in the loss of incremental data). *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 RemoteSourceUpload : MonoBehaviour { [MenuItem("Source/UploadSourceIncremental", false, 1)] private static void UploadSourceIncremental() { CacheServer.UploadSourceIncremental(false); CacheServer.UploadReference(); } }

Upload asset source info incrementally. It is recommanded to invoke CacheServer.UploadReference after uploading the source data, so that the cache server can retain complete asset source and dependency information.