QueryFileList
Namespace: SynicSugar.TitleStorage
public static async UniTask<List<string>> QueryFileList(string[] tags, CancellationToken token = default(CancellationToken))
public static async UniTask<List<string>> QueryFileList(List<string> tags, CancellationToken token = default(CancellationToken))
Description
Query the file List from backend. Hold FileSizeBytes to read file.
When we know the filename to want to get, can also call ReadFile not to call this.
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);
}
}