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

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...

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

carmelo1143'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

54010 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.

[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)

Понравилась статья? Поделить с друзьями:
  • Failed to load dll from the list error code 225 human fall flat
  • Failed to load dll from the list error code 126 фазмофобия
  • Failed to load dll from the list error code 126 как исправить
  • Failed to load url http launcher website action select language with error 105
  • Failed to load dll from the list error code 126 windows 10