UE 5.1.0 Exclude editor content when cooking not working

Hi, I had an issue of packaging on Windows after upgrading from UE 5.0.3 to UE 5.1.0. When I open the .exe it says “CDO Constructor(GLTFMaterialExporter): Failed to find /Engine/EditorMeshes/EditorSphere.EditorSphere”, but after that the game runs normally. I tried an empty project and it still had the same issue.

It is very easy to reproduce:

  1. Create an empty project
  2. Create a new basic level
  3. Set the current map as the default map
  4. Select “Exclude editor content when cooking” in Project Settings
  5. Package on Windows

The error should come from “+PackagesToBeFullyLoadedAtStartup=/Engine/EditorMeshes/EditorSphere” in BaseEngine.ini file. Unticking “Exclude editor content when cooking” can solve the problem, but it will add extra 300MB to the game size, so just a temporary solution. UE 5.0.3 doesn’t have this issue.

I would be glad if anyone can provide some solution.

3 Likes

I’m having the same issue. Did you try deleting the EditorSphere?

If anyone knows the proper solution please let us know.

Simply deleting the EditorSphere in BaseEngine.ini won’t be the final solution, there should be some internal problem. Using UE 5.1.0 to package on Windows increases almost 300MB compared to UE 5.0.3. Bug report should be sent to Epic.

I reported the bug internally.
It has been fixed for 5.1.1

Until 5.1.1, you can disable the gltf exporter plugin as workaround.

10 Likes

Disabling the gltf exporter plugin does solve the issue. Thanks.

3 Likes

Thanks! disabling the Gltf plug in worked for me too! (UE 5.1)

Hey I tried disabling the plugin and I got a different error:

error/ "filename: does not look like uproject file but no targets have been found!

Any ideas?

I’m using version 5.3 and I enabled “Exclude editor content when cooking” but the editor references are still packed into chunk0 (my project packaging has multiple pak files)

Some resources in the project belong to “EditorOnly References”. These resources have no effect after being packaged. They are only used in the editor to help development, but they are still forcibly packaged into chunk0, resulting in an increase in the size of the pak file.

They can be viewed in the Reference Viewer