跳到主要内容
版本:2.1.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