Caching and Apache
Quick tutorial covering how HTTP headers affect browser caching and configuring Apache for your needs.
Author
Step-by-step instructions to learn how to deploy an existing Unity game to your Android device or get a game ready for releasing to the Play Store.
In this tutorial, learn how to deploy your Unity game to an Android device.
Download the JDK from Oracle
Install the JDK. Grab the 32-bit version; I wasn't able to get Unity to work with the 64-bit alternative.
Include java's bin
directory in your PATH variable.
On my 64-bit Win8 install, the path was "C:Program Files (x86)Javajdk1.8.0_20in"
.
Yours will likely be something similar.
Download the Android SDK
Unpack the SDK.
Some of the names in this bundle can be quite long.
So if you're on Windows, be careful about limitations on total path lengths.
I got around this by unpacking to "C:A"
, a shorter than usual path.
Navigate to that directory, run the SDK Manager and make sure you've got the following installed:
To allow unsigned Android application packages (APKs) on your device, you'll need to modify some settings.
Go to Settings -> Developer options
.
On Android 4.2 (Jelly Bean) and higher, these options have been hidden and adding them to the menu requires extra steps:
Settings -> About Phone
.Build Number
and tap it 7 times.
Once you get into the developer options, enable USB Debugging
and Allow Mock Locations
.
Plug in your device over USB, and you should see a message like "USB debugging connected".
Heads up: some devices will need additional manufacturer specific drivers. As an example, I needed these for my Nexus 5.
Start Unity. Go to Edit -> Preferences -> External Tools
.
Point the Android SDK Location
to the appropriate location ("C:Aadt-bundle-windows-x86_64-20140702sdk"
in my case).
Go to File -> Build Settings
.
Select Android
and click the Player Settings
button.
Set everything up the way you'd like. The Bundle Identifer setting is required and should follow conventions (com.finalparsec.towerdefense
for example).
Select Build And Run
, select a location for your .apk, and the game should start up on your device.
Continue the discussion with us: @Final_Parsec
Note If you're still having trouble deploying games to your device and you're on Windows, take a look at this supplementary article I wrote. There is one more setting worth double checking.
We have similar articles. Keep reading!
Quick tutorial covering how HTTP headers affect browser caching and configuring Apache for your needs.
Author
Technical talk from Matt Bauer about A* pathfinding in Nauticus Act III.
Author
Video tutorial about managing enemy health in a rail shooter built with Unity3d. We'll also discuss killing enemies in fiery explosions.
Author