docs.unity3d.com
    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.

    Back to top
    Terms of use
    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