docs.unity3d.com
    Show / Hide Table of Contents

    Method CreateChainOperation

    CreateChainOperation<TObject, TObjectDependency>(AsyncOperationHandle<TObjectDependency>, Func<AsyncOperationHandle<TObjectDependency>, AsyncOperationHandle<TObject>>)

    Create a chain operation to handle dependencies.

    Declaration
    public AsyncOperationHandle<TObject> CreateChainOperation<TObject, TObjectDependency>(AsyncOperationHandle<TObjectDependency> dependentOp, Func<AsyncOperationHandle<TObjectDependency>, AsyncOperationHandle<TObject>> callback)
    Parameters
    Type Name Description
    AsyncOperationHandle<TObjectDependency> dependentOp

    The dependency operation.

    Func<AsyncOperationHandle<TObjectDependency>, AsyncOperationHandle<TObject>> callback

    The callback method that will create the dependent operation from the dependency operation.

    Returns
    Type Description
    AsyncOperationHandle<TObject>

    The operation handle.

    Type Parameters
    Name Description
    TObject

    The type of operation handle to return.

    TObjectDependency

    The type of the dependency operation.

    CreateChainOperation<TObject>(AsyncOperationHandle, Func<AsyncOperationHandle, AsyncOperationHandle<TObject>>)

    Create a chain operation to handle dependencies.

    Declaration
    public AsyncOperationHandle<TObject> CreateChainOperation<TObject>(AsyncOperationHandle dependentOp, Func<AsyncOperationHandle, AsyncOperationHandle<TObject>> callback)
    Parameters
    Type Name Description
    AsyncOperationHandle dependentOp

    The dependency operation.

    Func<AsyncOperationHandle, AsyncOperationHandle<TObject>> callback

    The callback method that will create the dependent operation from the dependency operation.

    Returns
    Type Description
    AsyncOperationHandle<TObject>

    The operation handle.

    Type Parameters
    Name Description
    TObject

    The type of operation handle to return.

    CreateChainOperation<TObject, TObjectDependency>(AsyncOperationHandle<TObjectDependency>, Func<AsyncOperationHandle<TObjectDependency>, AsyncOperationHandle<TObject>>, Boolean)

    Create a chain operation to handle dependencies.

    Declaration
    public AsyncOperationHandle<TObject> CreateChainOperation<TObject, TObjectDependency>(AsyncOperationHandle<TObjectDependency> dependentOp, Func<AsyncOperationHandle<TObjectDependency>, AsyncOperationHandle<TObject>> callback, bool releaseDependenciesOnFailure = true)
    Parameters
    Type Name Description
    AsyncOperationHandle<TObjectDependency> dependentOp

    The dependency operation.

    Func<AsyncOperationHandle<TObjectDependency>, AsyncOperationHandle<TObject>> callback

    The callback method that will create the dependent operation from the dependency operation.

    Boolean releaseDependenciesOnFailure

    Whether to release dependencies if the created operation has failed.

    Returns
    Type Description
    AsyncOperationHandle<TObject>

    The operation handle.

    Type Parameters
    Name Description
    TObject

    The type of operation handle to return.

    TObjectDependency

    The type of the dependency operation.

    CreateChainOperation<TObject>(AsyncOperationHandle, Func<AsyncOperationHandle, AsyncOperationHandle<TObject>>, Boolean)

    Create a chain operation to handle dependencies.

    Declaration
    public AsyncOperationHandle<TObject> CreateChainOperation<TObject>(AsyncOperationHandle dependentOp, Func<AsyncOperationHandle, AsyncOperationHandle<TObject>> callback, bool releaseDependenciesOnFailure = true)
    Parameters
    Type Name Description
    AsyncOperationHandle dependentOp

    The dependency operation.

    Func<AsyncOperationHandle, AsyncOperationHandle<TObject>> callback

    The callback method that will create the dependent operation from the dependency operation.

    Boolean releaseDependenciesOnFailure

    Whether to release dependencies if the created operation has failed.

    Returns
    Type Description
    AsyncOperationHandle<TObject>

    The operation handle.

    Type Parameters
    Name Description
    TObject

    The type of operation handle to return.

    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