Unity stuck while compiling shader variants while exporting the game,

Hi,

Here are a few suggestions:

  1. Save your build on your harddrive but not inside your project folder, on your Desktop or in a cloud.
  2. Use English characters (A-Z, a-z, 0-9) only for your file and folder names.
  3. Remove all scenes from the Build Settings list and readd them.
  4. Make sure that neither your firewall nor your antivirus program block Unity.
  5. Run Unity with administrator rights.
  6. Update Unity to a newer stable version.

Did any of these help?

Building a game can take up several minutes. While Unity is building, it is advisable not to click around. Leave your computer alone. In this case, I would click on “Cancel” and click on “Build” again. If you don’t need a Development Build, untick the box.


See also: