【m】10.StoryEditor [1.0.6] - 2026-01-08
### Fixed - 处理Sample无法下载的问题 - 处理Graph选择加载器时指定程序集后不产生选项的问题
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user