Home / Guides / Program and file errors

UnityPlayer.dll was not found - how to fix it

UnityPlayer.dll is the engine of every game built with Unity - thousands of titles ship it right next to their own .exe file. When Windows cannot find it, the copy inside the game folder is gone or damaged; Windows itself never includes this file. The usual culprit is an antivirus that quarantined it by mistake, and the fix takes minutes. What you should not do is download the DLL from a random site - the version must match the game exactly.

Fix it automatically

Outbyte PC Repair checks Windows for corrupted system files, registry problems and leftovers from removed programs - the kind of damage behind errors like this one. Useful when you would rather not run the steps below by hand - the check and the diagnosis are free, and nothing is changed until you decide.

Download PC Repair Downloads Outbyte PC Repair for Windows. Free by-category trial included.

Quick answer

Open your antivirus first and look in the quarantine - UnityPlayer.dll is a frequent false positive. Restore the file and add the game folder to the exclusions. If the quarantine is empty, verify the game files in Steam (or reinstall the game from its own launcher) and the file comes back on its own.

Symptoms - how this problem looks

"The code execution cannot proceed because UnityPlayer.dll was not found"
"UnityPlayer.dll caused an Access Violation" when the game starts
The game worked yesterday and stopped after an antivirus or Windows update
The error appears right after installing or copying a game
Reinstalling the game helps only until the next launch
Other programs run fine - only Unity games are affected

Why it happens

The antivirus quarantined the file

Unity's engine DLL triggers false positives surprisingly often. The game folder loses the file, and after a restore it may disappear again until you add an exclusion.

The installation is incomplete

An interrupted download, a copy from a USB drive that missed files or a failed update leaves the game folder without the engine DLL.

The game folder was moved by hand

Moving or renaming a game's folder outside its launcher breaks the file layout the game expects - launchers lose track of the real location.

A wrong DLL copy from a download site

UnityPlayer.dll is built per Unity version. A copy taken from another game or a DLL site rarely matches - the error changes shape instead of disappearing.

The fixes, in order

1. Check the antivirus quarantine

  1. Open your antivirus and find the quarantine (in Windows Security: Virus & threat protection, Protection history).
  2. If UnityPlayer.dll is listed - restore it.
  3. Add the game folder to the exclusions so the file is not taken again.
  4. Start the game.

Stay safe: an exclusion is fine for a game you installed from Steam, Epic or GOG. For a game downloaded from a questionable source, the warning may be real - do not exclude it blindly.

2. Verify the game files in the launcher

  1. Steam: right-click the game, Properties, Installed Files, Verify integrity of game files.
  2. Epic Games: click the three dots on the game, Manage, Verify Files.
  3. GOG Galaxy: select the game, settings icon, Manage installation, Verify / Repair.
  4. The launcher re-downloads the missing DLL and the game starts.

3. Reinstall the game

  1. Uninstall the game through its launcher - saves normally survive, they live in a separate folder.
  2. Restart the PC and install the game again.
  3. Launch it once from the launcher itself, not from an old desktop shortcut.

4. Repair system files if several games fail

  1. Right-click Start, open Terminal (Admin).
  2. Run sfc /scannow, then DISM /Online /Cleanup-Image /RestoreHealth.
  3. Restart and verify the game files once more.

Frequently asked questions

Can I download UnityPlayer.dll from a DLL site?

Better not. The file is built for a specific Unity version - a copy from another game usually crashes with a different error, and DLL sites are a known malware channel. The launcher's verify function restores the exact file the game shipped with, for free.

Is UnityPlayer.dll a virus?

The file itself is the Unity game engine - it ships with legitimate games. Antiviruses sometimes flag it by mistake, which is exactly why it disappears. A copy that came inside a game from an untrustworthy source is another story - there the warning deserves attention.

Why does the file disappear again after I restore it?

The antivirus keeps removing it on every launch until the game folder is in the exclusions. Add the exclusion first, restore the file second - in that order it stays.

The automatic route, whenever you are ready

Outbyte PC Repair checks the system and shows what it found - then waits. Nothing is applied without your OK, and a restore point lets you undo changes.

Download PC Repair Downloads Outbyte PC Repair for Windows. Free by-category trial included.
Freescan and diagnosis
You choosewhat to fix
Windows 11-7supported