跳到主要内容
版本:2.3.x

Class HandleBase

Assembly: YooAsset.dll
Declaration
public abstract class HandleBase : IEnumerator, IDisposable

Properties

Status

当前状态

Declaration
public EOperationStatus Status { get; }

LastError

最近的错误信息

Declaration
public string LastError { get; }

Progress

加载进度

Declaration
public float Progress { get; }

IsDone

是否加载完毕

Declaration
public bool IsDone { get; }

IsValid

句柄是否有效

Declaration
public bool IsValid { get; }

Task

异步操作任务

Declaration
public Task Task { get; }

Methods

Release()

释放资源句柄

Declaration
public void Release()

Dispose()

释放资源句柄

Declaration
public void Dispose()

GetAssetInfo()

获取资源信息

Declaration
public AssetInfo GetAssetInfo()
Returns

YooAsset.AssetInfo

GetDownloadStatus()

获取下载报告

Declaration
public DownloadStatus GetDownloadStatus()
Returns

YooAsset.DownloadStatus

Implements

  • System.Collections.IEnumerator
  • System.IDisposable