FetchFile
Namespace: SynicSugar.TitleStorage
public static async UniTask<bool> FetchFiles(string[] fileNames)
Description
Exsist targets? If not, Download them from EOS server.
After call this, we can load the target as Resources or AssetBundle.
using System.Collections.Generic;
using SynicSugar.TitleStorage;
using UnityEngine;
public class TitleStorageSample : MonoBehaviour {
[SerializeField] Text currentProgress;
async void Start() {
List<string> tags = new();
tags.Add("audio");
tags.Add("image");
var fileList = await QueryFileList(tags);
await FetchFiles(fileList.ToArray());
}
}