docs.unity3d.com
    Show / Hide Table of Contents

    Method Complete

    Complete(TObject, Boolean, String)

    Complete the operation and invoke events.

    Declaration
    public void Complete(TObject result, bool success, string errorMsg)
    Parameters
    Type Name Description
    TObject result

    The result object for the operation.

    Boolean success

    True if successful or if the operation failed silently.

    String errorMsg

    The error message if the operation has failed.

    Remarks

    An operation is considered to have failed silently if success is true and if errorMsg isn't null or empty. The exception handler will be called in cases of silent failures. Any failed operations will call Release on any dependencies that succeeded.

    Complete(TObject, Boolean, String, Boolean)

    Complete the operation and invoke events.

    Declaration
    public void Complete(TObject result, bool success, string errorMsg, bool releaseDependenciesOnFailure)
    Parameters
    Type Name Description
    TObject result

    The result object for the operation.

    Boolean success

    True if successful or if the operation failed silently.

    String errorMsg

    The error message if the operation has failed.

    Boolean releaseDependenciesOnFailure

    When true, failed operations will release any dependencies that succeeded.

    Remarks

    An operation is considered to have failed silently if success is true and if errorMsg isn't null or empty. The exception handler will be called in cases of silent failures.

    Complete(TObject, Boolean, Exception, Boolean)

    Complete the operation and invoke events.

    Declaration
    public void Complete(TObject result, bool success, Exception exception, bool releaseDependenciesOnFailure = true)
    Parameters
    Type Name Description
    TObject result

    The result object for the operation.

    Boolean success

    True if successful or if the operation failed silently.

    Exception exception

    The exception if the operation has failed.

    Boolean releaseDependenciesOnFailure

    When true, failed operations will release any dependencies that succeeded.

    Remarks

    An operation is considered to have failed silently if success is true and if exception isn't null. The exception handler will be called in cases of silent failures.

    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