docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CheckModifiedScenesAndAskToSave

    CheckModifiedScenesAndAskToSave()

    Used during the build to check for unsaved scenes and provide a user popup if there are any.

    Declaration
    public static bool CheckModifiedScenesAndAskToSave()
    Returns
    Type Description
    bool

    True if there were no unsaved scenes, or if user hits "Save and Continue" on popup. False if any scenes were unsaved, and user hits "Cancel" on popup.

    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)