force | Force of uploading source data to the CacheServer, even if the upload option in CacheServer setting is not enabled. |
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.