Couldn't save package, filename is too long in Unreal Engine
The cooker builds output paths by combining your project folder, Saved/Cooked, the platform name and the asset path. One of them went over the 260-character Windows path limit.
Paste your log: find the cause in seconds Runs in your browser, nothing is uploaded.
Common causes
- The project lives in a deep folder (Desktop, OneDrive, nested folders).
- Long asset names or deep folder structures in Content.
- Long path support (LongPathsEnabled) is not enabled on the build machine.
How to fix it
- Enable long paths in Windows: set HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1 (or the matching group policy), then reboot.
- Move the project closer to the drive root, for example D:\Projects\MyProject.
- Shorten very long folder or asset names if the path is still near the limit.
- Cook again.
Questions
Can it be caught before cooking?
Yes, it can be checked before you start a cook: Compute the longest cooked output path and read the LongPathsEnabled registry value.