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); } }
| UploadArtifacts | Upload the specified GUIDs to the CacheServer. If keys is empty, all assets are uploaded. |