How to play Unity Games offline - gHacks Tech News

How to play Unity Games offline

When you play games in your web browser, one of the following four technologies is being used usually: Adobe Flash, Java, Unity or HMTL5.

There are exceptions to the rule but the majority relies on at least one of the technologies listed above. When it comes to Unity, it is necessary to install the Unity Web Player add-on on the system which web browsers pick up as a plugin.

The Unity team works on a plugin-less version of the player currently so expect this to come out in the near future. The advantage of it is that it does not require plugins to run which should improve stability among other things.

While it is possible to play Unity games in the browser directly, you may have noticed that performance may not be the best. This is usually because you are playing the game on older hardware but partially also caused by it not being a native app but running inside the browser.

This means usually that you get other elements on the screen not related to the game. A website may display ads for example, media, textual contents, images and other elements which at the very least may be distracting.

Play Unity games offline

unity games offline

It is possible to play Unity games offline, or separated from the website they are hosted on. Offline is of course only an option if the game is not purely multi-player.

Good news is that you can download many Unity games and play them on the computer regardless of an Internet connection. Another benefit is that it is usually faster than playing the games in the browser.

Here is what needs to be done:

  1. You need to install the Unity Web Player plugin on your system. It is available for Mac and Windows.
  2. Download the latest version of Unity Player from this website. It is available for Windows and the tool used to play the Unity games on the computer.
  3. Optional: Install a cache browser for easier access to Unity Player files. Firefox users can check out CacheViewer

All steps above are one-time processes. To download and play a Unity game offline, do the following:

  1. Open the game in your browser of choice. This downloads it to the cache of the browser.
  2. Use a caching extension or browse your browser's cache manually to locate the .unity3d file in the cache.
  3. Drag and drop the file into the Unity Player interface.

That's all there is to it. (Thanks Ken for the tip)

Summary
How to play Unity Games offline
Article Name
How to play Unity Games offline
Description
A quick tutorial that explains how you can Unity games offline on your computer using a program called Unity Player.
Author




  • We need your help

    Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

    We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats (video ads) or subscription fees.

    If you like our content, and would like to help, please consider making a contribution:

    Comments

    1. pog said on February 20, 2015 at 7:11 pm
      Reply

      uniplayer doesn’t work, it hangs while loading a game.

    2. TerryHocking said on February 28, 2016 at 7:18 pm
      Reply

      great and this used to work. I aswitched to windows 10 and now the browser clears the .unity3d file as soon as it stios loading. trying to figure out how to over ride.

      1. Jay said on March 10, 2016 at 9:51 am
        Reply

        In Firefox try [CTRL+SHIFT+I] to bring up the web inspector on the game page. Click on the search box (left of the “Rules” tab) and type in ‘unity3d’. Keep pressing [Enter] until you get a chunk of Javascript code. Double-click on the highlighted text and look through it for a file path that ends in “.unity3d”. Now just copy the path into the URL bar. If it doesn’t include a domain, then simply add the domain you’re already on. (ex: http ://thedomain. com/PATH/TO/GAME/FILE.unity3d). Load the URL and your Browser should download the file.

        1. Jason Ross said on November 9, 2017 at 5:08 am
          Reply

          What do you do if the inspector can’t find the unity3d file? There’s a “title” page and a game page. The title page has no unity3d file and the inspector wont work on the game page. What do I do?

    3. Brian said on March 14, 2017 at 3:23 am
      Reply

      Uniplayer doesn’t work for me. When I open it, it just asks me to install Unity Web Player even though I already have it installed. I tried reinstalling it and it did nothing. The File-View-Tool-Help bar at the top doesn’t appear either. :/

      1. Brian said on March 14, 2017 at 12:24 pm
        Reply

        Nevermind about that, I got Uniplayer working again. The thing is, I had to download the 32-bit version of Unity Web Player in order for it to work. For some reason, installing the 64-bit version of Unity Web Player from their website won’t let you use Uniplayer. Just a heads up for anyone who’s trying this.

        1. Martin Brinkmann said on March 14, 2017 at 1:24 pm
          Reply

          Brian, thanks for the tip. I’m sure it is helpful to other users as well.

    4. Videogamer555 said on April 14, 2018 at 11:48 am
      Reply

      Where does Unity Web Player store its cache? For example when playing a unity game (whether embedded in a webpage or playing with UniPlayer) one of the first things the game does is download needed resources (textures for buttons, background images for various screens, even some audio files). These get stored to the Unity Web Player cache. Where on my harddrive is this cache stored?

    Leave a Reply