Files
plugin-library/Assets/00.StaryEvo/Runtime/Tool/PanelSystem/AssetLoader/IAssetLoader.cs
stary 383c334675
All checks were successful
Plugin Library CI / publish (00.BuildOriginality) (push) Successful in 5s
Plugin Library CI / publish (00.StaryEvo) (push) Successful in 7s
Plugin Library CI / publish (00.StaryEvoTools) (push) Successful in 22s
Plugin Library CI / publish (01.HybridCLR) (push) Successful in 7s
Plugin Library CI / publish (02.InformationSave) (push) Successful in 3s
Plugin Library CI / publish (03.YooAsset) (push) Successful in 35s
Plugin Library CI / publish (04.AudioCore) (push) Successful in 3s
Plugin Library CI / publish (05.TableTextConversion) (push) Successful in 4s
Plugin Library CI / publish (06.UIFarme) (push) Successful in 18s
Plugin Library CI / publish (07.RKTools) (push) Successful in 3s
Plugin Library CI / publish (11.PointCloudTools) (push) Successful in 4s
Plugin Library CI / publish (12.WeixinMinigame) (push) Successful in 1m5s
Plugin Library CI / publish (08.UniTask) (push) Successful in 4s
Plugin Library CI / publish (09.CodeChecker) (push) Successful in 19s
Plugin Library CI / publish (10.StoryEditor) (push) Successful in 5s
Plugin Library CI / publish (10.XNode) (push) Successful in 3s
111
2026-05-15 13:43:34 +08:00

26 lines
892 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.Threading.Tasks;
using UnityEngine;
namespace Stary.Evo.UIFarme
{
/// <summary>
/// 资源加载策略接口用于抽象不同的资源加载方式如YooAsset、Resources等
/// </summary>
public interface IAssetLoader
{
/// <summary>
/// 异步加载GameObject资源
/// </summary>
/// <param name="assetPath">资源路径</param>
/// <param name="packageName">YooAsset包名Resources模式可忽略</param>
/// <returns>加载到的GameObject资源非实例是原始Prefab</returns>
Task<GameObject> LoadGameObjectAsync(string assetPath, string packageName = null);
/// <summary>
/// 卸载指定资源,释放底层资源句柄
/// </summary>
/// <param name="assetPath">资源路径</param>
void UnloadAsset(string assetPath);
}
}