docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method StartOperation

    StartOperation<TObject>(AsyncOperationBase<TObject>, AsyncOperationHandle)

    Registers an operation with the ResourceManager. The operation will be executed when the dependency completes. This should only be used when creating custom operations.

    Declaration
    public AsyncOperationHandle<TObject> StartOperation<TObject>(AsyncOperationBase<TObject> operation, AsyncOperationHandle dependency)
    Parameters
    Type Name Description
    AsyncOperationBase<TObject> operation

    The custom AsyncOperationBase object

    AsyncOperationHandle dependency

    Execution of the operation will not occur until this handle completes. A default handle can be passed if no dependency is required.

    Returns
    Type Description
    AsyncOperationHandle<TObject>

    The AsyncOperationHandle used to access the result and status of the operation.

    Type Parameters
    Name Description
    TObject

    Object type associated with this operation.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)