docs.unity.cn
    Show / Hide Table of Contents

    Enum ReturnCode

    Options for scriptable build pipeline return codes. Int values of these return codes are standardized to 0 or greater for Success and -1 or less for Error.

    Namespace: UnityEditor.Build.Pipeline
    Syntax
    public enum ReturnCode

    Fields

    Name Description Value
    MissingRequiredObjects

    Use to indicate that the operation failed because it was missing the required objects.


    -5
    UnsavedChanges

    Use to indicate that the operation failed because there are unsaved scene changes.


    -4
    Canceled

    Use to indicate that the operation was cancelled.


    -3
    Exception

    Use to indicate that the operation encountered an exception.


    -2
    Error

    Use to indicate that the operation encountered an error.


    -1
    Success

    Use to indicate that the operation suceeded.


    0
    SuccessCached

    Use to indicate that the operation suceeded.


    1
    SuccessNotRun

    Use to indicate that the operation suceeded but did not actually execute.


    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, June 26, 2023