【m】[1.0.5] - 2026-01-06

### Changed
- 添加更新日志
- 修改加载器选择范围,允许指定程序集检查
### Fixed
- 处理Sample在UnityPackage窗口不显示的问题
This commit is contained in:
mzh
2026-01-08 11:07:40 +08:00
parent 05b1bc90ff
commit cc3543519d
11 changed files with 56 additions and 9 deletions

View File

@@ -0,0 +1,20 @@
using Cysharp.Threading.Tasks;
using rokid.armaz.module;
using Stary.Evo.StoryEditor;
using UnityEngine;
public class ResourceLoader : IResource
{
public UniTask<T> Load<T>(ResourcePathData pathData) where T : Object
{
return AMP.ResourceLoader.LoadAssetAsync<T>(pathData.packageID, pathData.path);
}
public UniTask<ResourcePathData> Save<T>(T asset, string packageID) where T : Object
{
ResourcePathData pathData = new();
pathData.packageID = packageID;
pathData.AddPath(asset.name);
return UniTask.FromResult(pathData);
}
}