Files
FlowScope/Packages/com.flowscope.gamecore/Runtime/UI/IUIPreloadService.cs
2026-06-04 14:54:49 +08:00

17 lines
430 B
C#

using System.Threading;
using System.Threading.Tasks;
using FlowScope.Resources;
using UnityEngine;
namespace FlowScope.UI
{
public interface IUIPreloadService
{
Task PreloadAsync<TPanel>(CancellationToken cancellationToken);
bool IsPreloaded<TPanel>();
bool TryGetPreloadedHandle<TPanel>(out IResourceHandle<GameObject> handle);
void Release<TPanel>();
void ReleaseAll();
}
}