// path 相对与StreamingAssets的路径 public static List <T> ReaderCSV <T>(string path) { CsvDataCached.CachedCsvFile <T>(path); Dictionary <int, T> dataDic = CsvDataCached.GetCsvFileDatas <T>(); List <T> list = new List <T>(); foreach (T item in dataDic.Values) { list.Add(item); } return(list); }
public void CachedCSV() { CsvDataCached.CachedCsvFile <EntityCsvData>(inputFieldFilePath.text); Debug.Log("缓存完毕!"); }