Class AsyncOperationBase
Assembly: YooAsset.dll
Declaration
public abstract class AsyncOperationBase : IEnumerator, IComparable<AsyncOperationBase>
Properties
Priority
任务优先级
Declaration
public uint Priority { get; set; }
Status
任务状态
Declaration
public EOperationStatus Status { get; protected set; }
Error
错误信息
Declaration
public string Error { get; protected set; }
Progress
处理进度
Declaration
public float Progress { get; protected set; }
PackageName
所属包裹名称
Declaration
public string PackageName { get; }
IsDone
是否已经完成
Declaration
public bool IsDone { get; }
Task
异步操作任务
Declaration
public Task Task { get; }
ProcessTime
处理耗时(单位:毫秒)
Declaration
public long ProcessTime { get; protected set; }
Fields
BeginTime
开始的时间
Declaration
public string BeginTime
Methods
ExecuteWhileDone()
执行While循环
Declaration
protected bool ExecuteWhileDone()
Returns
System.Boolean
ClearCompletedCallback()
清空完成回调
Declaration
protected void ClearCompletedCallback()
WaitForAsyncComplete()
等待异步执行完毕
Declaration
public void WaitForAsyncComplete()
CompareTo(AsyncOperationBase)
Declaration
public int CompareTo(AsyncOperationBase other)
Returns
System.Int32
Parameters
Type | Name |
---|---|
YooAsset.AsyncOperationBase | other |
Events
Completed
完成事件
Declaration
public event Action<AsyncOperationBase> Completed
Event Type
System.Action<YooAsset.AsyncOperationBase>
Implements
System.Collections.IEnumerator
System.IComparable<YooAsset.AsyncOperationBase>