您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
900 B
27 行
900 B
using System.Collections.Generic;
|
|
using System.IO;
|
|
using UnityEngine;
|
|
using System.Linq;
|
|
namespace MetaCity.BundleKit.Editor
|
|
{
|
|
public static class AvatarBundleExporter
|
|
{
|
|
public static List<BuildCatalog> LoadLastAvatarBuiltCatalog()
|
|
{
|
|
var catalogReader = new StreamReader(Constants.AvatarBundleLocalCatalogPath);
|
|
try
|
|
{
|
|
var catalogCollection = JsonUtility.FromJson<BuildCatalogCollection>(catalogReader.ReadToEnd());
|
|
catalogReader.Close();
|
|
return catalogCollection.catalogs.ToList();
|
|
}
|
|
catch (System.Exception)
|
|
{
|
|
Debug.Log($"Cannot load last build catalog from {Constants.BundleLocalCatalogPath}!");
|
|
catalogReader.Close();
|
|
}
|
|
|
|
return new List<BuildCatalog>();
|
|
}
|
|
}
|
|
}
|