Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 Todd Seiler · Apr 26, 2011 at 07:48 PM · editoreditor-scriptingautomatic

Unknown EditorApplication.SaveScene() errors

I'm trying to automate some things with unity. So far it works good, but I am concerned about these errors I get.

For example: 1) I call EditorApplication.OpenScene(); 2) Search for an object in the hierachy. 3) Call DestroyImmediate() on the object. 4) EditorApplication.SaveScene();

Everything works great until the SaveScene() call. Right after I call this, the unity console results in multiple entries of the following error:

"Failed to unpersist: Not loaded ID: 170180 FileID: 400001 UnityEditor.EditorApplication:SaveScene(String)"

Where the numbers are different almost every time. What I'm doing is looping through the scenes, deleting 1 or more objects from each scene and resaving them. Opening another scene, deleting, saving.

From what I can tell, it saves ok. But the errors clutter the console. As a possible workaround, I attempted to saving using MenuItem.ExecuteMenuItem( "File/Save Scene" );, but it doesn't recognize that particular menu entry.

When the script is done executing, it also throws similar errors but it is from "UnityEditor.DockArea:OnGUI()" instead.

Any ideas what any of these errors mean? I'm concerned that these errors are bad in ways I don't understand.

Thanks!

Comment
Add comment · Show 2
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 Steven-Walker · Jan 29, 2012 at 06:04 PM 0
Share

Did you ever find a solution? I just started getting this error too. $$anonymous$$y script was working fine before, so some change I made recently has caused this, though I don't know what.

avatar image Jenny · Aug 05, 2012 at 04:32 AM 0
Share

Someone find the solution? I'm with the same error, and I don't know what's happening. Anyone can help me? Thanks!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by vzasadnyy · Feb 17, 2014 at 04:19 PM

Probably you are trying to save scene with wrong file extension, correct one is [scene name].unity

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Execute Code When Component Added 6 Answers

How to record hideFlags for Undo/Redo 0 Answers

How do you hide a GameObject's handles? 1 Answer

Changes to Object made in custom Editor Window don't persist 0 Answers

How do you save changes made with custom editor? 3 Answers


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