Class HandleBase
资源句柄基类,提供资源加载状态查询和释放功能。
Assembly: YooAsset.dll
View Source
Declaration
public abstract class HandleBase : IEnumerator, IDisposable
Properties
Status
当前状态
View Source
Declaration
public EOperationStatus Status { get; }
Error
错误信息
View Source
Declaration
public string Error { get; }
Progress
加载进度
View Source
Declaration
public float Progress { get; }
IsDone
是否加载完毕
View Source
Declaration
public bool IsDone { get; }
IsValid
句柄是否有效
View Source
Declaration
public bool IsValid { get; }
Methods
Release()
释放资源句柄
View Source
Declaration
public void Release()
Dispose()
View Source
Declaration
public void Dispose()
GetAssetInfo()
获取资源信息
View Source
Declaration
public AssetInfo GetAssetInfo()
Returns
YooAsset.AssetInfo: 资源信息### GetAwaiter() 获取用于 async/await 的 Awaiter
View Source
Declaration
public OperationAwaiter GetAwaiter()
Returns
YooAsset.OperationAwaiter: 用于 async/await 的 Awaiter 对象
Implements
System.Collections.IEnumeratorSystem.IDisposable