Failed to load window layout unity как исправить

enter image description here

Clicking «load default layout» does nothing (just rerenders the alert box), clicking «revert factory settings» also does nothing.

I’ve googled this issue and the common solution is to reopen unity and to reimport all assests except this is a brand new project. There is nothing in it to import.

I’ve tried creating a new project and it still gives me this error.

I’m running version 2020.1.5f1 and the target platform is Windows 64-bit

asked Sep 17, 2020 at 2:36

Marnie Rodriguez's user avatar

1

Quit Unity and do the following:

  • Go to «AppDataRoamingUnityEditor-5.xPreferencesLayoutsdefault» or «~/Library/Preferences/Unity/Editor-5.x/Layouts/default» for mac, delete LastLayout.dwlt and copy Default.wlt
  • Paste Default.wlt into the «Library» folder of your project
  • Delete CurrentLayout-default.dwlt and rename Default.wlt to CurrentLayout-default.dwlt

Reopen Unity and load the project. The editor should open normally. You should now be able to create new projects as usual too.

answered Sep 17, 2020 at 11:20

shadyhunch's user avatar

3

the simple solution if it has yet to be tried would be to uninstall unity and reinstall.
if you have already tried that try updating to a newer version see if unity 2020.3 works to narrow the problem down a bit more. I had the same problem for me I just updated unity to a newer version and everything worked perfectly.

answered Sep 17, 2020 at 8:53

Kjnold's user avatar

KjnoldKjnold

1262 bronze badges

3

I tried the solutions posted by @carmelo343 and @Abhishek Dubey, but it still didn’t work. My solution was to create the unity project using an older version (I used 2019.3.12f1), which shouldn’t cause that layout error, then change the unity version to 2020.1.5f1 in Unity Hub (see below)

Unity Hub

answered Sep 17, 2020 at 20:29

Kevin Yao's user avatar

  1. go to «C:Users<username>AppDataRoamingUnityEditor-5.xPreferencesLayoutsdefault»
  2. Copy this file in your project library folder renaming it with «CurrentLayout-default.dwlt» and replace it with the old one.

Worked for me!!

answered Sep 17, 2020 at 13:26

Abhishek Dubey's user avatar

2

I get this most every time I launch a project in Unity. Then I close and relaunch and all is fine. I am using a personal layout. I am using Unity 2020.1.8f1. These kind of things never happened before 2020 version.

answered Dec 3, 2020 at 12:47

emorphus's user avatar

emorphusemorphus

5509 silver badges19 bronze badges

just try this : in unity editor: Help -> Check For Updates -> uncheck the Check For Update

answered Dec 8, 2020 at 14:29

user14787558's user avatar

2

On Windows:

  1. Open your project folder and delete the CurrentLayout-default.dwlt file

  2. Go to «C:Users<username>AppDataRoamingUnityEditor-5.xPreferencesLayouts»

  3. Copy Default.wlt file to your project library folder and rename it to «CurrentLayout-default.dwlt«

my project opened normally without the warning.

answered Apr 4, 2021 at 19:43

Shubham Jain's user avatar

I solved this by downloading and installing the latest Unity Hub.

answered Apr 23, 2021 at 15:23

mmancuso's user avatar

I saved my project to a different location and was able to open Unity.

answered Sep 19, 2020 at 8:49

Yashw's user avatar

YashwYashw

9111 bronze badges

“Failed to load window layout” the error most of the Unity 3D users faced; even in the updated version of Unity 3D. This error does not let you open your existing project as well as the newly created projects. In this post, we’ll see how to fix the “Failed to load window layout” in Unity 3D.

Why Failed to load window layout error window showing in Unity 3D

In Unity 3D “Failed to load window layout” error is showing when there are any errors in your Editor script. “This happens if layout contains custom windows and there are compile errors in the project”. This is what mentioned in the error window.

Sometimes, the same error window is displayed even if you create and opening a new unity project. When you have a custom editor window in your project and it doesn’t compile successfully; Unity 3D is not able to load your window and the project.

How to fix Failed to load window layout error in Unity 3D

To fix the “Failed to load window layout” error in Unity 3D you can use the options provided in the error window. There will be three options to proceed further.

unity-create-switch-ui-overflowarchives
unity-create-switch-ui-overflowarchives

The first one is “Load Default Layout” – when you’re using this option, the Unity project window is set to the default layout. And it will remove your custom window and use Unity’s default layout types.

The second one is “Revert Factory Settings” – this will remove all the custom layout window preferences in Unity 3D and load the default layout for the editor.

The below window will be shown when you select this second option, click the continue button when it asks for confirmation for resetting the layouts.

The last one is “Quit” – it will quit the process of opening the Unity 3D project and close the project without any changes in it.

The other option is if you have the custom window script in your project open the script in Visual Studio and fix any error in the script. If your project doesn’t have any custom window and you’re facing this error, please try the above options to fix them.

[irp]

Alternative way to fix the error in Unity 3D

If you tried all the above and the same error window is showing or getting the error even for a new project then try the following option to fix. It will replace the project layout support file with the default layout file.

1. Open Users/<currentUser>/AppData/Roaming/Unity/Editor-5.x/Preferences/Layouts/default
2. Open Default.wlt fine using any text editor
3. Copy the content from the Default.wlt file
4. Go to your project folder and find the folder named Library
5. Now open the CurrentLayout-default.dwlt file in any text editor
6. Paste the copied content and save the file and try to open the project

Please close all the instances of Unity before doing the changes. The above solution will work perfectly without any issue and you’re able to open your project successfully.

To avoid the issue in future projects please check that Unity 3D has the write permission in the installation directory. Maybe sometimes this causes the error.

Thanks for the read please share your feedback in the comments.

Ошибка при запуске Unity (Failed to load window layout)

Здравствуйте, появляется вот такая ошибка при запуске Unity (Скриншот)
Ошибка стала появляться после того как я билдил игру под андройд и внезапно закрыл Unity (Ооочень долго собиралась, думал завис)
Изображение

Нажимал и на Load и на Revert, но ошибка сразу же опять выскакивает.
Unity 2019.4

Quarnion
UNец
 
Сообщения: 8
Зарегистрирован: 08 дек 2020, 22:06


Re: Ошибка при запуске Unity (Failed to load window layout)

Сообщение Quarnion 08 дек 2020, 22:23

Нашел решение, если у кого то есть такая проблема вот:

Quarnion
UNец
 
Сообщения: 8
Зарегистрирован: 08 дек 2020, 22:06

Re: Ошибка при запуске Unity (Failed to load window layout)

Сообщение Quarnion 08 дек 2020, 22:25

waruiyume писал(а):https://youtu.be/hGukVu1DR18

Ахах, да я уже нашел спасибо! :)

Quarnion
UNец
 
Сообщения: 8
Зарегистрирован: 08 дек 2020, 22:06


Вернуться в Глюки

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 4



Go to your unity project directory like this:
Open CurrentLayout-default.dwlt file with Notepad or any text editor and delete all its contents then paste the contents of Default.wlt that you copied in step 2
If these files exist in Library delete them:
Stop the Unity Hub service by a click the system tray and right-click on Unity Hub icon then select Quit Unity Hub.
I’m running version 2020.1.5f1 and the target platform is Windows 64-bit
Solution 1:
Quit Unity and do the following:
Go to «AppDataRoamingUnityEditor-5.xPreferencesLayoutsdefault» or «~/Library/Preferences/Unity/Editor-5.x/Layouts/default» for mac, delete LastLayout.dwlt and copy Default.wlt
Paste Default.wlt into the «Library» folder of your project
Delete CurrentLayout-default.dwlt and rename Default.wlt to CurrentLayout-default.dwlt
Reopen Unity and load the project.

Can not start a new project as unity has «failed to load window layout»


Question:

Clicking «load default layout» does nothing (just rerenders the alert box), clicking «revert factory settings» also does nothing.

I’ve googled this issue and the common solution is to reopen unity and to reimport all assests except this is a brand new project. There is nothing in it to import.

I’ve tried creating a new project and it still gives me this error.

I’m running version 2020.1.5f1 and the target platform is Windows 64-bit


Solution 1:

Quit Unity and do the following:

  • Go to «AppDataRoamingUnityEditor-5.xPreferencesLayoutsdefault» or «~/Library/Preferences/Unity/Editor-5.x/Layouts/default» for mac, delete LastLayout.dwlt and copy Default.wlt
  • Paste Default.wlt into the «Library» folder of your project
  • Delete CurrentLayout-default.dwlt and rename Default.wlt to CurrentLayout-default.dwlt

Reopen Unity and load the project. The editor should open normally. You should now be able to create new projects as usual too.


Solution 2:

the simple solution if it has yet to be tried would be to uninstall unity and reinstall.
if you have already tried that try updating to a newer version see if unity 2020.3 works to narrow the problem down a bit more. I had the same problem for me I just updated unity to a newer version and everything worked perfectly.


Solution 3:

I tried the solutions posted by @carmelo343 and @Abhishek Dubey, but it still didn’t work. My solution was to create the unity project using an older version (I used 2019.3.12f1), which shouldn’t cause that layout error, then change the unity version to 2020.1.5f1 in Unity Hub (see below)

Unity Hub


Solution 4:

  1. go to «C:Users<username>AppDataRoamingUnityEditor-5.xPreferencesLayoutsdefault»
  2. Copy this file in your project library folder renaming it with «CurrentLayout-default.dwlt» and replace it with the old one.

Worked for me!!

Unity default layout error every time Code Example, Delete LastLayout.dwlt from C:\Users\YOURNAME\AppData\Roaming\Unity\Editor …

How To Fix Unity Failed To Load Window Layout Error

Click Quit 2. Search Run 3. Click Run 4. Type appdata 5. Click OK Button 6. Open Roaming
Folder
7. Scroll Down Until You Find
Unity Folder
8.
Open Unity Folder
9. …

How I solved the error «Failed to load Window Layout» in

The file we are looking for is located
inside
a folder called «Library» and its name is «Custom-Layout», apparently it is the file where the
window layout
we have in …

Unity 3D is Layout Errors On a fresh install


Question:


Unity 3d doesnt work, when I try to open my project it says that This can happen if layout contains custom windows and there are compile errors in the project. I tried reinstalling OpenGL and something that I found on the internet but didn’t work. The error window says that Revert Factory Settings but same thing happens after it too my Unity version is 2020.1.0a My OS is Ubuntu and I gave all the permissions to some folders. Didn’t work And all this happened after a fresh install


Solution 1:

Unity 2020.1.0a3 is an

ALPHA VERSION

!

As any alpha version it is

not stable for production

and can be expected to be full of bugs and unexpected behavior.

Search through the

Known Issues in 2020.1.0a3

maybe your problem is already listed there.


In general

do not touch

alpha or beta versions unless you want to checkout a new added feature and test it.

For anything else stick to the

stable

releases like

2019.1.14f1

or 2019.2.6f1

On the last letter you can see their state:


  • a

    = Alpha

  • b

    = Beta

  • f

    = Release

Not sure if these are related but here and here also others had this problem already in early version so maybe one of their hot-fixes work for you as well.


Solution 2:

This error may occur in released versions.

To resolve this problem:

  1. Go to this directory:

C:Users{YOUR_USER}AppDataRoamingUnityEditor-5.xPreferencesLayoutsdefault

  1. Open Default.wlt file with Notepad or any text editor and copy all its contents.

  2. Go to your unity project directory like this:

{YOUR_UNITY_PROJECT}Library

  1. Open CurrentLayout-default.dwlt file with Notepad or any text editor and delete all its contents then paste the contents of Default.wlt that you copied in step 2

  2. If these files exist in Library delete them:

CurrentMaximizeLayout.dwlt

CurrentLayout.dwlt

  1. Stop the Unity Hub service by a click the system tray and right-click on Unity Hub icon then select Quit Unity Hub.

  2. Run your project again.

Defualt layout not working unity Code Example, Delete LastLayout.dwlt from C:\Users\YOURNAME\AppData\Roaming\Unity\Editor …

Unity build Errors


Question:

So ive made my game and tried to’build it. I get a couple of errors that mean nothing to me.

Here’s the errors:

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:buildslaveunitybuildEditorMonoBuildPlayerWindowBuildMethods.cs:191
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:buildslaveunitybuildEditorMonoBuildPlayerWindowBuildMethods.cs:97
unityengine.guiutility:processevent(int32, intptr)

UnityException: Build path contains project built with «Create Visual Studio Solution» option, which is incompatible with current build settings. Consider building your project into an empty directory.
UnityEditor.WindowsStandalone.WindowsDesktopStandalonePostProcessor.CheckSafeProjectOverwrite (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/WinPlayer/Extensions/Managed/WindowsDesktopStandalonePostProcessor.cs:58)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/DesktopStandalonePostProcessor.cs:43)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

It should build and run right. It currently does not do so. Any help will be appreciated. :D


Solution:

UnityException: Build path contains project built with «Create Visual Studio Solution» option, which is incompatible with current build settings. Consider building your project into an empty directory.

sounds pretty self-explanatory.

Before you have built the project with that option enabled, now you are trying it without.

Either

  • A. Enable that option again if you want to create a VS solution
  • B. Delete the content created by the former build or
  • C. As the exception suggests simply choose another target folder for the new build.

C# — Unity build Errors, Consider building your project into an empty directory. sounds pretty self-explanatory. Before you have built the project with that option enabled, now …


Question:

When creating a new 3D project in Unity (version 2019.3.3f1), I got an error in the unity console without making any change or doing anything within Unity.

The Error:

IndexOutOfRangeException: Index was outside the bounds of the array.
VSCodeEditor.ProjectGeneration.b__25_0 (System.String asset) (at Library/PackageCache/com.unity.ide.vscode@1.1.4/Editor/ProjectGeneration/ProjectGeneration.cs:175)

And the line of code supposedly wrong is from the file created w/ the Project called projectGeneration.cs.

var affectedNames = affectedFiles.Select(asset => m_AssemblyNameProvider.GetAssemblyNameFromScriptPath(asset)?.Split(new [] {".dll"}, StringSplitOptions.RemoveEmptyEntries)[0]);


Solution 1:

Go into your Unity Package Manager and find the visual studio code package. Click ‘see all versions’. Change the versions and try downgrading/updating (Sadly I don’t know which version is compatible). Restart Unity and it should be fixed.


Solution 2:

I had the same problem.

The solution for me was to install .NET Framework 4.7.1 Developer pack from:- https://dotnet.microsoft.com/download/dotnet-framework/net471

This is quite an old version, however this was the version requested by OmniSharp in the output window of VS Code.

Note: This solution works with even the 1.2.0 version of the Visual Studio Code Editor package.


Solution 3:

Downgrade visual studio code version to 1.1.3 to fix this error

Open Unity, then go to:

Window->Package Manager->Visual Studio Code 1.1.3

After that, just restart Unity and it will fix the error.

Unity error immediately after creating a new Project, 1 Go into your Unity Package Manager and find the Visual Studio Code package. Click ‘see all versions’. Change the versions and try …

[MODES] Loading mode Default (0) for mode-current-id-OpenVR_XR_bug
<RI> Initialized touch support.

<RI> Initialized touch support.

<RI> Initialized touch support.

<RI> Initialized touch support.

<RI> Initialized touch support.

<RI> Initialized touch support.

<RI> Initialized touch support.

<RI> Initialized touch support.

Start importing Assets/XR/Settings/Open VR Settings.asset using Guid(d4513fcaf1a045346ada3b36cf02eacf) Importer(-1,00000000000000000000000000000000)
Done importing asset: 'Assets/XR/Settings/Open VR Settings.asset' (target hash: '178abffbc1da6497d0ffb77f76134c76') in 0.003706 seconds
Refreshing native plugins compatible for Editor in 0.31 ms, found 3 plugins.
Preloading 0 native plugins for Editor in 0.00 ms.
RefreshInfo: StopAssetImportingV2(NoUpdateAssetOptions)
RefreshProfiler: Total: 0.000ms
	InvokeBeforeRefreshCallbacks: 59.754ms
	ApplyChangesToAssetFolders: 0.346ms
	WriteModifiedImportersToTextMetaFiles: 0.061ms
	CleanLegacyArtifacts: 0.000ms
	Scan: 0.000ms
	OnSourceAssetsModified: 42.703ms
	UnregisterDeletedAssets: 0.000ms
	InitializeImportedAssetsSnapshot: 0.000ms
	GetAllGuidsForCategorization: 2.199ms
	CategorizeAssets: 0.208ms
	ImportAndPostprocessOutOfDateAssets: 0.649ms (11.085ms without children)
		ImportManagerImport: 0.843ms (6.178ms without children)
			ImportInProcess: 0.825ms
			ImportOutOfProcess: 5.338ms
			UpdateCategorizedAssets: 0.000ms
			RemoteAssetCacheGetArtifact: 0.016ms (0.000ms without children)
				RemoteAssetCacheResolve: 0.000ms
				RemoteAssetCacheDownloadFile: 0.000ms
		CompileScripts: 0.000ms
		PostProcessAllAssets: 0.000ms
		ReloadImportedAssets: 1.852ms
		VerifyAssetsAreUpToDateAndCorrect: 0.001ms
		EnsureUptoDateAssetsAreRegisteredWithGuidPM: 0.000ms
		InitializingProgressBar: 0.100ms
		PostProcessAllAssetNotificationsAddChangedAssets: 0.001ms
		OnDemandSchedulerStart: 0.087ms
		RestoreLoadedAssetsState: 0.109ms
	InvokeProjectHasChanged: 0.599ms
	UpdateImportedAssetsSnapshot: 0.000ms
	ReloadSourceAssets: 1.314ms
	UnloadImportedAssets: 0.535ms
	Hotreload: 0.044ms
	FixTempGuids: 0.429ms
	VerifyGuidPMRegistrations: 0.002ms
	GatherAllCurrentPrimaryArtifactRevisions: 0.000ms
	UnloadStreamsBegin: 0.102ms
	LoadedImportedAssetsSnapshotReleaseGCHandles: 0.069ms
	GetLoadedSourceAssetsSnapshot: 0.359ms
	PersistCurrentRevisions: 1.267ms
	UnloadStreamsEnd: 0.000ms
	GenerateScriptTypeHashes: 0.064ms
Adding genesis user token Adding genesis user token Adding genesis user token Adding genesis user token Adding genesis user token Adding genesis user token Adding genesis user token Adding genesis user token Failed to load window layout: System.ArgumentException: Window layout at 'Library/CurrentLayout-default.dwlt' could not be loaded.
  at UnityEditor.WindowLayout.LoadWindowLayout (System.String path, System.Boolean newProjectLayoutWasCreated, System.Boolean setLastLoadedLayoutName, System.Boolean keepMainWindow) [0x000fa] in <d7545a46516941d4b2f2dec578cd41ee>:0 
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.WindowLayout:LoadWindowLayout(String, Boolean, Boolean, Boolean)
UnityEditor.WindowLayout:LoadDefaultWindowPreferencesEx(Boolean)
UnityEditor.WindowLayout:LoadDefaultWindowPreferences()
 
(Filename: C:buildslaveunitybuildRuntime/Export/Debug/Debug.bindings.h Line: 35)

Понравилась статья? Поделить с друзьями:
  • Как найти количество теплоты при изохорном нагревании
  • Как исправить телефон упавший в воду
  • Как найти послание от инопланетян
  • Как исправить прикус молочных зубов
  • Как найти содержание исполнительного производства по номеру