Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by malkere · Sep 06, 2018 at 08:12 AM · crashsave scene

Why don't project window changes persist after a crash?

For example I changed one of my prefabs attached scripts prior to a crash I just had. The prefab is not in scene, it's in the project window, on the disk. Why doesn't a change to a file like that persist after a crash? After reloading my project and hitting start I get a null reference error because the script isn't on the prefab. I also lose shader tweaks and other public variable changes that aren't related to the scene.

Is that the difference between the "save project" and "save scene" options? Does "save scene" automatically call "save project"? I hit ctrl+s all the time, it just seems like a crash will still wipe out certain changes. Thankfully crashes are few and far between for me, but I don't understand why files on disk revert to their previous state.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Harinezumi · Sep 06, 2018 at 08:27 AM 0
Share

Yes, there is a difference between "Save Project" and "Save Scene": some changes, usually overall project related like those in the settings assets, only get saved when you click "Save Project". However, although "Save Scene" does NOT call "Save Project" (and I think it should), it does save some changes not related to scenes. Unfortunately, there doesn't seem to be any documentation regarding when different elements are saved.
Note that there are also some changes that only get saved when you exit the Editor (for example layout of the different views) - these are usually Editor related changes.

So in general, it is a good idea to save often (ctrl+s), even if you are modifying a prefab in the Project view (and hoping that this will work), and manually use "Save Project" every now and then.

What you say that a change to a prefab in the Project view did not get "saved", even though the changes are present in the file seems to indicate that the crash might have occurred while saving, corrupting the prefab file or the asset database. You could try to reproduce the issue and create a bug report.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by malkere · Sep 06, 2018 at 08:15 AM

https://docs.unity3d.com/Manual/Saving.html Sometimes (usually) we skip over the easy stuff. Written pretty plainly in the manual though.

"To save changes to the scene, select Save Scene from the file menu, or hit Ctrl/Cmd + S. This saves current changes to the scene and Does a “Save Project” (below)."

I guess I just hadn't ctrl+s'd in a while because I wasn't working on scene data.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

93 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Crash when save scene or load scene. 0 Answers

my skybox disapears when i want to run the game is there a way to fix this? 2 Answers

Filing and debuging web plugin crashes 1 Answer

Unity crashes on certain collisions 1 Answer

3DS Max2009 32-bit Crashes when importing from MakeHuman 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies 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.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges