Quick answer: A Unity player takes its own executable name, adds _Data, and expects a folder with that name in the same directory. The dialog appears when the names no longer match or the folder did not arrive. Rename the .exe and the folder together, package the whole build folder with subfolders included, and tell players to extract the full zip and run the game from the extracted folder.
This dialog is one of the few launch errors that tells you exactly what it wants: a folder, with a name it spells out, beside the executable. The name it prints is also your best clue, because it is built from whatever the executable is called on that player’s disk. Below: the naming rule, what the name in the dialog reveals, the packaging mistakes that strip the folder from a zip, an itch.io upload, a Steam depot or an installer, how to rename a build without breaking it, the Linux and macOS versions of the same problem, and the short reply to give a player.
The exact error
There should be 'MyGame_Data'
folder next to the executable
The part in quotes changes with the game. It is a small dialog from the Windows standalone player with a single OK button, shown at launch, and the process exits when it is dismissed. No scene has loaded and no script has run.
The rule behind the message
A Unity build does not store the location of its data anywhere. At startup the player takes the file name of the executable that was launched, removes .exe, appends _Data, and looks for a folder with that name in the executable’s own directory. It does not search parent folders, the working directory or the registry.
That makes the quoted name a readout of the executable’s current name:
| Folder named in the dialog | What the executable is called | What probably happened |
|---|---|---|
MyGame_Data | MyGame.exe | The folder is missing: moved, not extracted, or not packaged |
MyGame - Copy_Data | MyGame - Copy.exe | The player copied the executable |
MyGame (1)_Data | MyGame (1).exe | A second download or copy got a numbered name |
MyGame_v1.2_Data | MyGame_v1.2.exe | Someone renamed the executable for a release and left the folder alone |
One detail narrows it further. Since Unity 2017.2 the engine itself lives in UnityPlayer.dll, which Windows has to load before any Unity code can show a dialog. An executable on its own therefore fails earlier, with the UnityPlayer.dll was not found error. If a player sees the _Data message from a current build, the executable and UnityPlayer.dll are both present and only the folder is absent or misnamed.
What causes it
- The executable was renamed and the folder was not. By far the most common. A developer renames
MyGame.exeto add a version number or tidy the name after the build, or a player renames it. Everything else in the folder is intact. - The package dropped its subfolders. An upload script, depot mapping or installer copied the top-level files and did not recurse. The executable and
UnityPlayer.dllarrive,MyGame_Datadoes not, and every player on that build gets the dialog. - The player moved the loose files out of the folder. They dragged the executable to the desktop to make a “shortcut”, got the UnityPlayer.dll error, dragged that file out too, and arrived here. Dragging within one drive moves files, so the original install is now broken as well.
- The game was run from inside the archive. Double-clicking the executable in the Windows zip viewer extracts that one file to a temporary folder and runs it there. On current Unity versions this usually produces the UnityPlayer.dll error first; builds older than 2017.2 show the
_Datadialog directly. - The folder exists with different letter case, on Linux.
mygame.x86_64will not findMyGame_Dataon a case-sensitive file system. - Security or clean-up software removed files. Rare for this exact message. Antivirus tends to quarantine individual executables and DLLs, which produces other errors, and seldom removes a whole data folder.
How to tell which one it is
Start with the name in the dialog and the table above. Then ask the player for a screenshot of the folder that contains the executable, with View > Show > File name extensions switched on in Explorer. A correct Windows build looks like this:
MyGame\
MyGame.exe
MyGame_Data\
UnityPlayer.dll
UnityCrashHandler64.exe
MonoBleedingEdge\ (Mono scripting backend)
GameAssembly.dll (IL2CPP scripting backend)
IL2CPP builds also place baselib.dll there, and some Unity versions add further files, so treat everything the build produced as required.
The pattern of reports matters as much as any single one. One player with the error has a local problem. Several players within hours of an update means the package is wrong: install your own game from the store on a machine that has never had it, and look at the folder.
Fix 1: rename both, or name the build correctly up front
To rename a finished build, rename the executable and the data folder to the same base name: Starfall.exe with Starfall_Data. Nothing inside the folder needs to change.
It is cleaner to never rename. The executable name is the file name you choose when you build, and Unity names the folder to match. In a build script that is locationPathName:
using UnityEditor;
public static class BuildScript
{
public static void BuildWindows()
{
var options = new BuildPlayerOptions
{
scenes = new[] { "Assets/Scenes/Main.unity" },
locationPathName = "Builds/Windows/Starfall.exe",
target = BuildTarget.StandaloneWindows64,
options = BuildOptions.None
};
BuildPipeline.BuildPlayer(options);
}
}
Keep version numbers out of the executable name. Put them in the zip or installer name instead, so shortcuts, the Steam launch option and anything else that points at the executable keep working from one release to the next. If you do change the name, update the executable field under Installation > General Installation in Steamworks at the same time.
Fix 2: ship the whole build folder
Everything Unity wrote to the output folder travels together, with two exceptions that are named for it: MyGame_BackUpThisFolder_ButDontShipItWithYourGame (IL2CPP symbols) and MyGame_BurstDebugInformation_DoNotShip. Copy the build to a staging folder, delete those two, and package the staging folder.
Zip downloads
Zip the folder itself, not a selection of its contents, so the archive has a single top-level folder. A zip with loose files at its root invites players to extract into Downloads and lose track of which files belong together.
itch.io
butler pushes a directory and preserves its structure, so point it at the staging folder:
butler push Builds/Windows your-account/your-game:windows
Steam
The file mapping in the depot build script must be recursive. Without that line SteamPipe uploads only the top level, which is exactly the set of files that produces this dialog:
"DepotBuildConfig"
{
"DepotID" "1000001"
"ContentRoot" "..\content\windows\"
"FileMapping"
{
"LocalPath" "*"
"DepotPath" "."
"recursive" "1"
}
}
Installers
The same mistake exists in installer scripts. In Inno Setup the source line needs the flags that walk subfolders:
[Files]
Source: "Builds\Windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Linux and macOS
A Linux build follows the same rule with a different extension: MyGame.x86_64 expects MyGame_Data beside it, along with UnityPlayer.so. Two extra traps apply. Names are case-sensitive, and a zip created on Windows does not carry the executable permission, so players may need chmod +x MyGame.x86_64 before the game runs at all. Unity’s Linux build page lists the expected files.
macOS has no sibling folder to lose. The data lives inside the MyGame.app bundle, under Contents/Resources/Data, so the equivalent failure is a damaged bundle: an archive tool that dropped permissions, or someone copying the binary out of Contents/MacOS. Create the archive on a Mac with ditto -c -k --keepParent MyGame.app MyGame.zip and distribute the bundle as a unit.
What to tell players
- Do not move or rename the game’s
.exe. It has to stay in the same folder as the folder ending in_Dataand the other files. - If you downloaded a zip: right-click it, choose Extract All, and run the game from the extracted folder. Running it from inside the zip window does not work.
- If you moved files to the desktop, put them back, or delete them and extract the zip again.
- For a desktop icon, right-click the
.exeand choose Send to > Desktop (create shortcut). - On Steam: Properties > Installed Files > Verify integrity of game files.
- If files keep disappearing, check your antivirus quarantine and restore them.
How to confirm the fix
Add a check to the build pipeline that fails when an executable has no matching folder. In PowerShell:
$exes = Get-ChildItem Builds\Windows\*.exe | Where-Object Name -notlike 'UnityCrashHandler*'
foreach ($exe in $exes) {
$data = Join-Path $exe.DirectoryName ($exe.BaseName + '_Data')
if (-not (Test-Path $data -PathType Container)) { throw "Missing folder: $data" }
}
That covers the rename. For packaging, the only test that counts is the delivered one: after each upload, install from the store or download the zip on a second machine, extract it to a new location, and launch. Checking your local build folder proves nothing about what the depot or the installer picked up.
Where Bugnet fits
A game that never starts cannot report itself, and this dialog appears before a single script runs, so no SDK, including Bugnet’s Unity SDK, will ever file it. Your first signal is a store review or a forum post. Bugnet’s contribution is on the player-facing side: a known-issue entry on your public tracker, titled with the dialog text, carrying the extract-and-do-not-rename steps, where players can find it by searching the message and upvote it so you can see how many are affected. If the count climbs right after an update, treat it as a packaging fault and check the depot. Once a player is in the game, their reports arrive with OS, hardware and game version attached as usual.
Related guides
- How to Fix “UnityPlayer.dll was not found” for Your Unity Game
- How to Fix “Failed to load il2cpp” and “Failed to load mono” in Unity Games
- How to Fix a Steam Depot Build Missing Files After Upload
- Unity Game Won’t Launch on a Player’s PC? How to Fix It
- Fix a Game Flagged by Antivirus on Launch
Frequently asked questions
What does There should be Game_Data folder next to the executable mean?
The Unity player looked for a folder named after its executable plus _Data in the same directory and did not find one. Either the folder is missing, or the executable or the folder was renamed so the two names no longer match.
Can I rename a Unity game’s exe file?
Yes, if you rename the data folder to match. Starfall.exe needs a folder called Starfall_Data beside it. It is safer to set the name when you build, because Unity then names the folder for you and shortcuts and store launch settings stay correct.
Why does my Unity game fail when I run it from the zip file?
The Windows zip viewer extracts only the file you double-click into a temporary folder and starts it there, without the data folder or UnityPlayer.dll. Extract the whole archive to a normal folder first, then run the executable from that folder.
Which files have to ship with a Unity Windows build?
The executable, the matching _Data folder, UnityPlayer.dll, the crash handler executable, and either the MonoBleedingEdge folder or GameAssembly.dll depending on the scripting backend. Ship everything Unity produced except the two folders whose names say not to ship them.
Why did my Steam build upload without the Data folder?
The file mapping in the depot build script was not recursive, so SteamPipe uploaded only the files at the top of the content folder. Add the recursive setting to the mapping, rebuild the depot, and install the game from Steam to confirm the folder is there.
Read the folder name in the dialog before anything else: it is the executable’s current name with _Data added, so it tells you whether the player renamed something or your package lost a folder.