Search Unity

Why does the "Save Assets" dialog pop up everytime

Discussion in 'Editor & General Support' started by gameengineer, Feb 17, 2011.

  1. gameengineer

    gameengineer

    Joined:
    Feb 17, 2011
    Posts:
    13
    I'm not sure if this is a "feature" of Unity 3.2 but I don't remember getting this dialog everytime I save the current Scene before. Even if I don't change anything and just hit <ctrl>S or File - Save Scene the Save Assets dialog pops up saying "Unity is about to save the following modified files.... " and then it lists the current scene file "<scene name>.unity" in the list box.

    On top of that Unity loses focus after clicking any of the three buttons (Close, Don't Save or Save All). Apparently focus doesn't return back to Unity from this dialog.

    I'm tempted to go back to 3.1. Is anyone seeing this?
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    I've never seen that in 3.2, not sure what would cause that.

    --Eric
     
  3. gameengineer

    gameengineer

    Joined:
    Feb 17, 2011
    Posts:
    13
    Ok, that's good feedback. Must be something related to my system.
     
  4. Frank Oz

    Frank Oz

    Joined:
    Oct 13, 2010
    Posts:
    1,560
    Go to Preferences and turn off verify saving assets.
     
  5. gameengineer

    gameengineer

    Joined:
    Feb 17, 2011
    Posts:
    13
    Duuude! You rock! That was it. <snaps face> what a newbie I am!

    Thanks both for your fast input.

    Unity 3.2 which I recently installed must have had that preference selected by default.
    OR
    I checked it by accident.
     
    CTN-Originals likes this.
  6. Frank Oz

    Frank Oz

    Joined:
    Oct 13, 2010
    Posts:
    1,560
    Nah, doesn't make you a newbie, AFAIK it's new to 3.2 and you're probably like me and check out preferences/options as soon as you've installed something new and clicked it because it sounded beneficial. Which it is, but it can become annoying too by triggering quite often.
     
    FColarich likes this.
  7. gameengineer

    gameengineer

    Joined:
    Feb 17, 2011
    Posts:
    13
    Actually I am a newbie because I only started last week with Unity. :)
    Been following many video tuts over at 3DBuzz.
     
  8. increpare

    increpare

    Joined:
    Nov 17, 2010
    Posts:
    151
    Haha I did this by accident as well just now. Thank you! :)
     
  9. J3-Gaming

    J3-Gaming

    Joined:
    Dec 23, 2010
    Posts:
    55
    Perfect reply to my google search, thanks!
     
  10. eovento

    eovento

    Joined:
    Feb 22, 2018
    Posts:
    38
    7 years later, still helpful. ;)
     
    jlewisBFE and limpin_jezus like this.
  11. rohitvishwakarma1819

    rohitvishwakarma1819

    Joined:
    Feb 15, 2018
    Posts:
    14
  12. Abo7mood

    Abo7mood

    Joined:
    Jun 3, 2020
    Posts:
    2
    9 years later still helpful.
     
    sivrikaya likes this.
  13. thefuturebymob

    thefuturebymob

    Joined:
    Jul 1, 2020
    Posts:
    5
    This actually fixes the Build and Run failures I get in 2019.4.2f1

    With verify assets turned on, the Save Assets dialog comes up for ProjectSettings/ProjectSettings.asset. Because this dialog comes up my build fails with an unity exception :

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.ContainerWindow.NotDockedWindowID () (at <2cbbf8f8c622459ca9fa64194b7b6e6e>:0)
    UnityEditor.ContainerWindow.Load (System.Boolean loadPosition) (at <2cbbf8f8c622459ca9fa64194b7b6e6e>:0)
    UnityEditor.ContainerWindow.Show (UnityEditor.ShowMode showMode, System.Boolean loadPosition, System.Boolean displayImmediately, System.Boolean setFocus) (at <2cbbf8f8c622459ca9fa64194b7b6e6e>:0)
    UnityEditor.EditorWindow.ShowWithMode (UnityEditor.ShowMode mode) (at <2cbbf8f8c622459ca9fa64194b7b6e6e>:0)
    UnityEditor.EditorWindow.ShowModal () (at <2cbbf8f8c622459ca9fa64194b7b6e6e>:0)
    UnityEditor.AssetSaveDialog.ShowWindow (System.String[] inAssets, System.String[]& assetsThatShouldBeSaved) (at <2cbbf8f8c62245

    Other exceptions also come up about null reference, and the actual build and run failure. None of these exceptions/erros are legit things that need fixing in my game. I do the instructions on this forum - turn off the validation of assets, the dialog doesnt pop up, and the build succeeds !!
     
    sivrikaya likes this.
  14. Juandapp

    Juandapp

    Joined:
    May 11, 2016
    Posts:
    53
    10 years later and still very good thread, it solves the problem of (Save Asset) annoying window every time I save to Unity.

    I repeat for the keywords to be useful to others.
     
  15. ErkanAkin

    ErkanAkin

    Joined:
    Oct 26, 2019
    Posts:
    8
    In Unity 2020.3.22f1 LTS version that enabled this feature automatically and that had been crashed my every Unity projects for the months. After disabling that projects do not crash at the moment. Thank you for your answer that still works in 2022.
     
    Unitron97 and christh like this.
  16. Unitron97

    Unitron97

    Joined:
    Nov 3, 2022
    Posts:
    1
    Let it be known that for all time this simple trick solves many problems of Unity. The issue of saving assets appears also when you are wanting to install the OpenXR plugin for VR related things in Unity version 2020.3.19f1. This needs to be fixed so that it automatically turns off when you install these plugins that update assets because it literally immobilises the project if you get caught out.
     
    Last edited: Nov 3, 2022
  17. iFunLabs

    iFunLabs

    Joined:
    Nov 2, 2021
    Posts:
    2
    In unity 2021, it moved to asset pipeline option.. upload_2023-2-10_10-50-34.png
     
    marcelo_lourencini likes this.