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 SimonW · Jul 24, 2012 at 12:09 PM · editorlayout

Error while reading window layout

I had the following error when I opened a previously working scene:

 Error while reading window layout: window #13 is null
 UnityEditor.WindowLayout:LoadWindowLayout(String)
 
 Failed to load window layout: System.Exception: Exception of type 'System.Exception' was thrown.
   at UnityEditor.WindowLayout.LoadWindowLayout (System.String path) [0x0011f] in C:\BuildAgent\work\b0bcff80449a48aa\Editor\Mono\GUI\WindowLayout.cs:518 
 UnityEditor.WindowLayout:LoadWindowLayout(String)
 
 Failed to destroy editor windows: #7
 ASMainWindow
 ConsoleWindow
 InspectorWindow
 ProjectWindow
 GameView
 SceneView
 HierarchyWindow
 UnityEditor.WindowLayout:LoadWindowLayout(String)
 
 Failed to destroy views: #12
 SplitView
 DockArea
 SplitView
 DockArea
 DockArea
 DockArea
 MainWindow
 Toolbar
 SplitView
 AppStatusBar
 DockArea
 DockArea
 UnityEditor.WindowLayout:LoadWindowLayout(String)

I've had this happen once or twice before and it's really annoying. Is there any way to recover my window layouts or do I have to build it all again from scratch?

Comment
Add comment
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

5 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Xavis · Dec 09, 2014 at 10:38 AM

I get this problem solved renaming project folder and reopening it from Unity project selector.

Hope it helps!

Comment
Add comment · Show 3 · 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
avatar image LetsBeChillx · Apr 19, 2018 at 06:52 PM 0
Share

tested in unity 5.3.4 on $$anonymous$$ac, does not work for me

avatar image DYLEE93 · Nov 30, 2018 at 01:00 AM 0
Share

Thanks!!!!!!!!

avatar image mscardinal · Aug 19, 2020 at 08:37 AM 0
Share

Fixed it for me on 2019.3.5f1!

avatar image
1

Answer by wangzy_88 · Jan 23, 2013 at 06:53 AM

I have this problem because of my code have some syntax errors,when I fixed them,my layout set is useable.

Comment
Add comment · Show 4 · 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
avatar image GXMark · Nov 25, 2014 at 08:27 PM 0
Share

Thats not an answer. The layout should not reset when you have a syntax error !

This is a unity bug needs fixing before 4.6 goes live this week.

avatar image shanecelis · Dec 04, 2014 at 10:29 PM 0
Share

Too late it's gone out. And here it is in the wild. I can't open one of my projects at all. Screenshot

screen_shot_2014-12-04_at_5_12_41_pm_png.png (476.4 kB)
avatar image wangzy_88 · Dec 05, 2014 at 10:24 AM 0
Share

Can't help.Open a new project and import old things.Or Open script in explorer and fix your bug...

avatar image cancol_11 · Aug 30, 2017 at 09:54 AM 0
Share

Chinese??????????????????

avatar image
0

Answer by Hoorza · Oct 16, 2016 at 07:04 PM

Had the same problem, and solved it by renaming the projects folder like Xavis said. Thanks!

Just remember that it will not show in the quick start menu after you change the name. Chose OPEN from the greeting menu and find the newly named folder of your project, select it, do not enter it and than click CHOOSE FOLDER. Taaa Daaa.

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
avatar image
0

Answer by chrisg5000 · Feb 27, 2017 at 02:33 PM

Still seeing this problem in 5.6 Renaming didn't work for me. Thanks to this thread I realized my custom window was being loaded into Unity's window layout, thus an instance always existed. Until this bug is fixed, I just made a key to DestroyImmediate() the instance:

 if ( yourWindowHere != null )
 {
     Debug.Log ( "YourWindowHere IS NOT NULL!!! If it's expected to be, press F12 to destroy." );
     if ( Input.GetKeyUp ( KeyCode.F12 ) )
     {
         DestroyImmediate ( yourWindowHere );
         Debug.Log ( "YourWindowHere was destroyed. Have a nice day!" );
     }
 }

I'm pretty sure this happens when the compiler receives certain errors, I just can't figure out which ones.

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
avatar image
0

Answer by ahmedaniss · Nov 26, 2020 at 11:20 PM

problem fixed here : https://youtu.be/Av9zt1gcpqc

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

13 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

Related Questions

Stretchable textures in Editor 0 Answers

editor layout - how to put console back to a tab?? 2 Answers

Get height of a group of GUILayout controls 1 Answer

Custom inspector - disabling specific controls. 1 Answer

Hide the Editor's Toolbar 0 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