Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Android Game Development with Unity

You're reading from   Mastering Android Game Development with Unity Build high-end Android games with Unity's advanced features

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781783550777
Length 352 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Siddharth Shekar Siddharth Shekar
Author Profile Icon Siddharth Shekar
Siddharth Shekar
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Introduction to Android Game Development with Unity3D FREE CHAPTER 2. Finishing the Perky Penguin 2D Game 3. Adding Player Character for an Action Fighting Game 4. Enemy Characters with AI 5. Gameplay, UI, and Effects 6. GameScene and SceneFlow 7. Gamestats, Social, IAP, and Ad Integration 8. Sound, Finishing Touches, and Publishing

Optimizing the APK


To get the individual file size, we make use of the console in Unity. Click on the small down arrow on the top-right of the console and select Open Editor Log:

This will open a text file with the log information. Scroll down in the text file to where it shows the size of the individual files. As you can see, Unity already does a good job of removing assets that are not being used in the current game.

It also breaks down the assets and shows which of the assets are contributing to the size. Here we see that the menuImage.jpg, ground.jpg, and wall.jpg images are quite big in size:

One of the popular tools for reducing the size of a JPEG is Paint.NET; it is a free application to reduce the file size. You can download the tool from http://www.getpaint.net/index.html.

Similarly, for of PNG images, you can use the PNG Crush tool to reduce the size of the image. It can be downloaded from https://pmt.sourceforge.io/pngcrush.

On the whole, it is recommended to use vector art as much...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime