Skip to main content
Version: 2.2.x

Class AsyncOperationBase

Assembly: YooAsset.dll
View Source
Declaration
public abstract class AsyncOperationBase : IEnumerator

Properties

Status

状态

View Source
Declaration
public EOperationStatus Status { get; protected set; }

Error

错误信息

View Source
Declaration
public string Error { get; protected set; }

Progress

处理进度

View Source
Declaration
public float Progress { get; protected set; }

IsDone

是否已经完成

View Source
Declaration
public bool IsDone { get; }

Task

异步操作任务

View Source
Declaration
public Task Task { get; }

Methods

ClearCompletedCallback()

清空完成回调

View Source
Declaration
protected void ClearCompletedCallback()

Events

Completed

完成事件

View Source
Declaration
public event Action<AsyncOperationBase> Completed
Event Type

System.Action<YooAsset.AsyncOperationBase>

Implements

  • System.Collections.IEnumerator