Interface IAsyncOperation | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IAsyncOperation

    Base interface of all async ops

    Namespace: ResourceManagement
    Syntax
    public interface IAsyncOperation : IEnumerator

    Properties

    context

    Gets the context object related to this operation, usually set to the IResourceLocation.

    Declaration
    object context { get; }
    Property Value
    Type Description
    System.Object

    The context object.

    error

    Gets the exception that caused this operation to change its status to Failure.

    Declaration
    Exception error { get; }
    Property Value
    Type Description
    Exception

    The exception.

    isDone

    Gets a value indicating whether this IAsyncOperation is done.

    Declaration
    bool isDone { get; }
    Property Value
    Type Description
    System.Boolean

    true if is done; otherwise, false.

    percentComplete

    Gets the percent complete of this operation.

    Declaration
    float percentComplete { get; }
    Property Value
    Type Description
    System.Single

    The percent complete.

    result

    Gets the result.

    Declaration
    object result { get; }
    Property Value
    Type Description
    System.Object

    The result.

    status

    returns the status of the operation

    Declaration
    AsyncOperationStatus status { get; }
    Property Value
    Type Description
    AsyncOperationStatus

    true if is done; otherwise, false.

    Methods

    ResetStatus()

    Reset status and error

    Declaration
    void ResetStatus()

    Events

    completed

    Occurs when completed.

    Declaration
    event Action<IAsyncOperation> completed
    Event Type
    Type Description
    Action<IAsyncOperation>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023