Class TAsyncOperationBase
- Namespace
- TAssetBundle
- Assembly
- TAssetBundle.dll
Base class for asynchronous operations
public class TAsyncOperationBase : IAsyncOperation, IEnumerator
- Inheritance
-
TAsyncOperationBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
TAsyncOperationBase()
Constructor
public TAsyncOperationBase()
Properties
Current
Current state (Property for IEnumerator implementation)
public object Current { get; }
Property Value
IsDone
Whether the operation is completed
public bool IsDone { get; protected set; }
Property Value
Pool
Pool for managing asynchronous operations
public static IAsyncOperationPool Pool { get; set; }
Property Value
Progress
Progress of the operation (0.0 to 1.0)
public float Progress { get; }
Property Value
Methods
Clear()
Initializes the asynchronous operation
public virtual void Clear()
GetProgress()
Returns the progress of the operation
public float GetProgress()
Returns
MoveNext()
Checks if the operation is done
public bool MoveNext()
Returns
Reset()
public void Reset()
Events
OnComplete
Event triggered when the operation is completed
public event Action<TAsyncOperationBase> OnComplete