Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learning Unity iOS Game Development
Learning Unity iOS Game Development

Learning Unity iOS Game Development: Build exciting games with Unity on iOS and publish them on the App Store

eBook
$35.99 $39.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Learning Unity iOS Game Development

Chapter 1. Requirements and Preparation Work

Unity 3D is a game engine that specializes in allowing developers to produce games for almost all gaming platforms. For iOS games, we must first prepare the engine so that it can publish builds that Apple will approve of. We will overcome some technical issues, such as how to get the users touch input to control the game from an Apple device, how to unlock achievements that show up in Apple's Game Center, and how to show advertisements in the game.

In this chapter, we will cover the following topics:

  • Downloading and installing Unity 5
  • Using the Unity Asset Store to download and install the iOS SDK plugin
  • Creating and logging in to iTunes Connect
  • Creating the game app in iTunes Connect
  • Setting up Game Center achievements and leaderboards
  • Enabling iAds for the game

Requirements

The bare minimum requirements to follow along with this book is a Windows or Macintosh computer that is able to run Unity 5. You also must have a Macintosh computer to compile, test, and submit the game to iTunes and have the most recent operating system for the Macintosh computer to run Xcode. It is important to have the most recent Xcode because the App Store now requires 64-bit compiling for an app to be accepted.

If you have plans on publishing a game to the iTunes Store, you will need an iOS developer account and an iOS license, which costs $99.00 USD per year. For the Unity packages, you will be given an option to use either a free or paid version. I will let you know about the package that I will be using. If you opt to not use the package that I am using, there will be some more work on your end to figure out some technical differences between them, although I will do my best to point you in the right direction.

If you do want to publish a game to the iTunes store, you will need a Macintosh computer with the current Xcode version installed. The most recent version is 6.4 and is available to all OS X Yosemite users. This will be used to create the proper credentials to upload the game to iTunes Connect for review.

Downloading and installing Unity 5

Unity 3D is offered free of charge by Unity Technologies via its website at http://unity3d.com/get-unity.

This page also displays the differences between the professional and free versions.

As of today, the most recent version is 5.0.0. Click on the FREE DOWNLOAD or FROM $75/MONTH button on the web page mentioned before. The current Unity licensing states that if you are a noncommercial entity or make less than $100,000 a year, you are free to use the entire engine without any royalties paid. Due to this reason, I recommend that you use FREE DOWNLOAD. When you click on download, you will get a very small installer. Run this and allow it to download what is needed for the engine. The engine requires 4 GB of HDD space and is about 1.5 GB to download.

Once the download is complete, open the installer. The first window, Download Assistant, will be called. It will ask you what to install. Make sure that you keep Unity 5 checked. You can uncheck Web Player and Standard Assets if you want.

After installing and opening Unity, you will not see any projects. To create one, click on the New Project button in the top-right corner of the Unity window. You can call it anything you desire. At the bottom of the window, there is a selection to change from 3D to 2D. Switch to 2D and click on Create project.

Downloading and installing Unity 5

At this point, the editor will open up and give you a blank screen to work with:

Downloading and installing Unity 5

Installing the iOS SDK plugin

We can use the free or nonfree version of a plugin. I will use the paid version called IOS Native.

The reason for me not using the free version called iOS SDK Essentials is that its version has not had any care for a while (at the time of writing this book). This means that there could be general update concerns by the time you are reading this.

To get iOS Native for $20.00 or iOS SDK Essentials, open the Unity Asset Store by clicking on Window and then Unity Asset Store or press Ctrl + 9. With the Asset Store window open, use the top-right search field to find either of these packages. From here, you can either buy and/or download it.

Installing the iOS SDK plugin

Tip

The iOS SDK plugin allows you to trigger events for achievements, leaderboards, and in-app purchases. It also allows you to show iAd banners.

Creating and logging in to the iTunes Connect profile

For Apple to approve our game, we must first create the development account for iTunes Connect. If you have no plans of publishing a game to the iTunes Store, you do not have to follow these steps.

  1. Navigate to https://developer.apple.com/.
  2. At the bottom of this page, under Download the latest development tools and SDK, click on the iOS Apps button.
  3. The following page will have a Register for free hyperlink at the top of the page. Click on it.
  4. On the next page, if you have a current Apple ID, click on the Sign In button. If you need to create the Apple ID, click on the Create Apple ID button and follow the steps to create the Apple ID.
  5. When you are logged in to your developer account, navigate to the iOS Dev Center. On the right-hand side, you will find Join the iOS Developer Program. Click on the Learn More hyperlink.
  6. As stated before, you have to pay $99.00 USD per year to join the developer program. Click on the Enroll now button and follow the steps, including the payment information and identity requirements. Again, if you do not wish to publish games to the iTunes store, you do not need to pay $99.00 USD per year.
  7. If you have completed the payment process, go to https://itunesconnect.apple.com.
  8. Log in to iTunes Connect with the account information you created. You will probably see a prompt to enter the required contracts and payment information at the top of this screen. This is required by Apple to sell your game on their store.
  9. You will also see many icons. Click on My Apps.

Creating the Bundle ID and Game App

In the top-left corner of the screen, you will see a blue + sign; click on it.

Before you enter any of the information, click on Developer Portal at the bottom of the window. This allows you to set up the Bundle ID before creating the application.

Once at Developer Portal, the App ID Description can be the name of the application. The App ID Prefix should be filled out for you. I will use Team ID. I used Explicit App ID and used the reverse-domain name style: com.mycompanyname.appname. For App Services, I will use Game Center and In-App Purchase:

Creating the Bundle ID and Game App

Click on Continue.

On the next page, Confirm your App ID will display the information that you have entered. If correct, click on Submit. It should follow with the Registration Complete page.

Go back to the My Apps page in iTunes Connect. Again, click on the blue + sign and then New iOS App.

In the popup window that shows, enter the name, version, language, SKU, and bundle ID. If you are curious about what any of these are, you can click on the question mark sign next to the name.

Note

SKU stands for Stock keeping unit. It is a unique tracking number that is used in the app store, which is specific to your application. You can use anything you like as long as it's unique from any of your other apps. For example, you can use com.mycompanyname.appname or your birth date 01012015.

If the name you chose is not taken, you will be taken to the My Apps page for your new game app.

Setting up App pricing and territories

On the App settings page, click on Pricing. You can get here by clicking on My Apps and then opening your game by clicking on its icon.

Pricing is the page where you can choose the initial cost of your application and the territories that will be available.

Availability Date should be the date, in which you will create this application. You can leave it as default for now. In the future, if you want to change the price for something, such as a sale, Availability Date will dictate how long this pricing tier can last.

For my game, it will be free. To set this or any other price, click on the Price Tier drop-down list and select the price.

To use Discount for Educational Institutions, use your own discretion:

Setting up App pricing and territories

The last thing you need to do on this page is click on specific territories at the bottom of the settings page. Everything is defaulted to be selected. If there are any territories you don't wish to have your game available on, click on the checkbox next to it. When done, click on Save at the bottom of the page.

The page should load back to Rights and Pricing and have the Completed box at the top of the page.

Creating an in-app purchase

First, click on the My Apps drop-down list at the top of the page and select My Apps. Then, click on your game to go back to the settings page.

Next, click on In-App Purchases.

The page will read No In-App Purchases have been set up for this app. To set one up, click on Create New.

Then, click on Non-Consumable.

There are five purchase types:

  • Consumable
  • Non-Consumable
  • Auto-Renewable Subscriptions
  • Free Subscription
  • Non-Renewing Subscription

Reference Name is the name that will be displayed in iTunes Connect and in Sales Trend reports. It is not displayed on the App Store. It's a way for us to have a reference to what it is we will sell when we look at reports.

Name it Remove_Ads with an underscore.

The product ID is a unique ID that is used to report the purchase. Typically, I would name this as gamename.referencename. Generally, this would be written as <<gamename>>.<<referencename>>, which symbolizes that you can put anything between these fields; however, as not all of you are aware that these symbols represent a dynamic field—meaning that it is about the formatting and not the literal text—gamename.referencename is the literal view of how it's inputted.

As I don't know the name of your games and we will both have to use this in the future chapters, the naming will have to match.

Name the product ID as G_RemoveAds with an underscore.

Under Pricing and Availability, select Yes for Cleared for Sale. For Price Tier, I have selected Tier 1, which is $0.99USD. If you are curious about the pricing matrix, click on View Pricing Matrix.

At the bottom of the page, click on Add Language.

A pop-up window will appear. Select English as the language if not already selected. Display Name is the name of the in-app purchase that will be seen by customers.

Enter Remove Ads.

Description is the description of the in-app purchase that will be used by App Review during the review process. It is used to describe what the purchase will do.

Enter Stops displaying iAds in the game.

Then, click on Save.

For Hosting Content With Apple, select No.

There is no need to have Review Notes.

We will add a screenshot of the purchase in the game when it is done in a later chapter. As a note, without screenshots, Apple will not be able to put the game on the App Store.

Now, click on Save.

The page should load to show the purchase we just made and have the status of Waiting for screenshot. We will add a screenshot in a later chapter.

Creating an in-app purchase

Click on Done. This should load you back to the App page. If not, click on My Apps and then select My Apps. Now, select your game.

Game Center, leaderboards, and achievements

When you are back at your game settings page, click on Game Center. The Enabled bar should already be set. If you see Disabled, click on it. The bar should turn to Enabled, and the color should turn to blue.

The next tab has two options: Single Game and Group of Games. Select Enable For Single Game.

Under Leaderboards, click on Add Leaderboard.

On the next page, under Single Leaderboard, click on Choose.

The next page will load with similar settings as the in-app purchase. For Leaderboard Reference Name, enter Distance.

For Leaderboard ID, enter G_Distance.

The Type of Score Format is Integer. This allows you to have a value that keeps track of the distance the player has moved. By whole distance, I mean a nondecimal-based value, such as 1, 2, 3, 4, and so on.

The Type of Score Submission should be set to Best Score. Leave this as it is. This way, we can save the distance with the player, save the profile locally, and only submit the score when its distance is greater than what they had done previously.

Sort Order is the order in which the leaderboards will appear. As the distance we are looking for is the highest value, change this to High to Low. This way, the player with the farthest distance will be at the top of the list.

As we have not programmed the value to calculate the distance, go ahead and leave Score Range blank. This will give us plenty of room to work with.

At the bottom of the window, click on Add Language.

Set Language to English and Name to Distance.

Score Format is a way to set a difference in the formatting of the score. For example, if our score was based on money, we would want to use a comma to separate the numbers. However, as we will use this value as a distance, we need to separate the values with a decimal point. Select Fixed Point (10.000.012,218 ).

The Score Format suffix is what will be added to the end of the score. Like before, if we were using money, we could end the formatting with "Dollars "or "Coins". As we will use this as a distance traveled, enter Yards.

Leave the Image field blank.

Then, click on Save.

The page should load back to the Add Leaderboard page with the information you have set.

Now, click on Save.

Game Center, leaderboards, and achievements

Tip

For the purposes of this book, one leaderboard is enough. Feel free to add more though! You could include things, such as "Deaths", "Pickups Collected", or "Attempts".

The page should load back to the Game Center page. If not, go back to My Apps, select your app and then Game Center.

For the achievements, we will set three of them. One for surviving "100 yards", one for "collecting 100 pickups", and one for "Play 10 Rounds". At the bottom of the page, click on Add Achievement.

For Reference Name of Achievement, enter 100Yards.

For ID of Achievement, enter G_100Yards.

Again, usually games would refer to these IDs with a format such as <<gamename>>.G_100Yards or literally gamename.G_100Yards, but because these names have to match the code that we are writing together and the game name is going to vary, you can use the direct achievement name: G_100Yards.

Point Value is the number of achievement points the Game Center account will be credited with when the achievement is collected. The value is completely arbitrary; you can enter anything you want. I will use 10.

Tip

Make sure to leave room for the next two achievements because if you use all 1000 points with this one, you won't be able to make any more achievements.

Select No for Hidden. If you use Yes, the achievement won't be in the list of achievements for our game until they have earned it if the user was to look at Game Center. As I would like the players to see their achievements, they can earn before earning them; selecting No will allow them to do this.

For Achievable More Than Once, select No. This is a one time achievement.

At the bottom of the page, click on Add Language.

The Title is 100 Yards.

The Pre-earned Description tab is what will appear in Game Center if the user is to look it up. You can enter what you like to describe this achievement. I will use Survive for 100 yards.

The Earned Description tab is what will display on Game Center after the user collects the achievement. Again, this is open. I will use You survived 100 yards!.

A package of art is included with this book. In the iTunes_Connect_Achievements folder, use the image called 100Yards.png for Choose File.

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

The three files look similar to the following image:

Game Center, leaderboards, and achievements

Click on Save.

Back on the Add Achievement page, it should list the information for the 100 Yards achievement. Then, click on Save.

Follow the same method for the next two achievements with the following settings:

  • [100 Pickups]:
    • Reference Name: 100Pickups
    • Achievement ID: G_100Pickups
    • Points: 10
    • Hidden: No
    • Achievable More Than Once: No

    The following is the Language setting for [100 Pickups]:

    Language: English

    Title: 100 Pickups

    Pre-earned Description: Collect 100 Pickups

    Earned Description: You have collected 100 Pickups!

    Image: 100_Pickups.png

  • [Play 10 Rounds]:
    • Reference Name: 10Rounds
    • Achievement ID: G_10Rounds
    • Points: 10
    • Hidden: No
    • Achievable More Than Once: No

    The following is the Language setting for [Play 10 Rounds]:

    Language: English

    Title: 10 Rounds

    Pre-earned Description: Play 10 rounds

    Earned Description: You have played 10 rounds!

    Image: 10_Rounds.png

Go back to the main page for your app and scroll down to where you see Game Center. The button should be grayed out. Click on it and it should turn green.

Click on the + sign next to Leaderboards. In the window that pops up, select the single leaderboard that we set up and then click on Done.

Now, click on the + sign next to Achievements. Select all the achievements we set up and then click on Done.

At the top of the screen, there is a Save button. Click on it to save the settings.

Game Center, leaderboards, and achievements

Tip

Once your game goes live, the achievement IDs and the point values for them is impossible to change. Make sure that during testing, you decide on these options as soon as the game is on the store; you will never be able to alter them.

The Main App settings

After you are done with the achievements, go back to the game app main page. This page is used to show all the public information for the game; the information users will see when the game appears on the store:

  • App video Preview and Screenshots: This is the area where you can place screenshots and a video preview of the game. Apple requires different image sizes for all their devices. If you want your app to show images, you will need to create, scale, and upload all the images here. The video preview also has to be in a Mac-friendly codec, such as M4V. The screenshots for the app are required, and your game will not be able to go live until you have them included in these slots; the video is up to you and not required by Apple to submit your game.

    Tip

    If you want to convert a AVI file to a M4V file, you can use a program called HandBrake (https://handbrake.fr/).

  • Description: This specifies the description of your app. This area is open for you to describe the game and why the user may be interested in it.
  • Keywords: This denotes the list of keywords that describe your app. When the user searches, these keywords are used to match your app to that search.
  • Support URL: This specifies the URL that a user can go to get help with the app. This is generally the studio website or the creator's personal e-mail.
  • Marketing URL: This is the URL that would be used as marketing for your app. This is optional.
  • Privacy Policy URL: This would link the user to the privacy policy of your game. This is required for apps that are made for kids, if you offer autorenew in-app purchases, or if you have free subscriptions. If you include account registration, an app that would access the users existing account, or if (by chance) your app is required by law, this is also required.
  • App Icon: This is the icon of your app. It is what the user will see when it appears on the store.
  • Apple ID: This specifies the ID of this app.
  • Version: This is the current version of the app.
  • Category: This specifies the category that the app falls into. For us, it is "Games".
  • Rating: This denotes the rating of this app.
  • License Agreement: This specifies the standard license agreement between you and Apple.
  • Copyright: This denotes the name of the person or entity that owns the rights to this app. In the example of this book, you would probably just use your name.
  • Trade Representative Contract Information: This allows you to display additional information that would be displayed on the Korean App Store.
  • Name, Address, and Country: This specifies your personal information about who owns the app.
  • Routing App Coverage File: This allows you to specify the geographic regions supported by your app.
  • Build: This is the current build and is uploaded with Xcode 5.1.1 version or later or the Application Loader 3.0 version.
  • Game Center: This denotes the achievements and leaderboards used for this game. You set these earlier.
  • Multiplayer Capability: This specifies the games that are multiplayer-capable. Keep this as it is.
  • Newsstand: Keep this unused.
  • App Review Information: This specifies the information that the Apple review team will use to contact you if they need any information during the review process. You'd generally use the name of the person in charge of quality assurance. In my case, I will use my name and e-mail.
  • Demo Account: This is used if the game needs an extra account to play, such as if you had a multiplayer service that required a log in, you would give the reviewers a demo account so that they could test the game with the extra service. For us, we can leave this blank.
  • Notes: This specifies the additional information that the review team may need to test the app. As our game will be on the simple side, you can leave this blank as well.
  • Version Release: This is the setting you can use to either automatically release the game as soon as it clears review or to set it up, so Apple lets you know when the game has cleared review. This is a personal choice. I generally use Manually release this version to make sure that everything is correct before it goes to the store.

At the very top of the page, click on Save.

Enabling iAds

At the top of the page, click on My Apps, and in the window that pops up, click on Agreements, Tax, and Banking.

On this page, you will have to fill out and accept the contracts for iOS Free Application, iOS Paid Applications, and iAd App Network. The process includes the personal banking information and the identity verification. When you have completed these, the game will be set up to sell and display iAds.

Setting up iOS Native in Unity

As Unity does not support the native functionality of iOS, we need a plugin to call the native iOS functions from Unity. For example, if we want to provide the user with the in-app purchase, we need this plugin to handle the code that takes care of this.

For our plugin to know about the specifics of our game, we must first include the Apple ID and the Bundle ID.

In Unity, click on Window at the top of the editor screen, navigate to iOS Native, and select Edit Settings.

The Inspector window should update to show iOS Native Settings.

In iTunes Connect, navigate to My Apps and click on your game. This will open the main settings page. About halfway down, you will find the text for Apple ID. This is a big integer value. Copy this and go back to Unity; you can select the text and click on Ctrl + C, or you can write it down.

In iOS Native Settings in Unity, under Apple ID, paste or enter the Apple ID from iTunes Connect:

Setting up iOS Native in Unity

While still in Unity, click on File in the top-left corner of the editor window. Then, navigate to Build Settings.

If your project is set to PC, Mac & Linux Standalone, click on IOS. In the bottom-left corner of the window, click on Switch Platform.

Next, in the same window, click on Player Settings. This will update the Inspector window. Under Other Settings, find the section under Identification and then the textbox labeled PlayerSettings.bundleIdentifier. In this field, enter the Bundle ID that you set up earlier. I used the reverse-domain name style, such as com.mycompanyname.appname.

If you do not remember your Bundle ID, navigate to iTunes Connect, select My Apps and then select your game. On the right-hand side of the window, click on More and then About this app. In this window, you will see the game information, including the Bundle ID of the game.

You can leave PlayerSettings.bundleVersion set to 1.0.

Tip

iOS Native is recommended even with the extra cost. If you do opt not to use it and try a free version, you will have to find some of these settings for this plugin.

Certificates and provisions on Mac

Apple has come a long way when it comes to making the provisions and certificates for games. This used to be a headache, but now, we can use Xcode to generate these for us.

The first step is that you will need to make a build and open it in Xcode. This can be done from your Windows or Macintosh machine, but it has to be opened on your Mac.

To create the build, open Unity and navigate to File in the top-left corner of the editor window. Then, go to Build Settings.

Make sure that the build is iOS and Development Build is checked.

As there is no reason to run this build on a device, you do not have to have a scene selected in the Scenes in build window.

Open Player Settings and make sure that PlayerSettings.bundleVersion is 1.0, and PlayerSettings.bundleIdentifier is set to the Bundle ID of your app.

Under Optimization, there are a few settings that you can keep as default so that you know what the important ones do:

  • API Compatibility Level: This allows you to set the .NET API profile. The .NET 2.0 API is the full .NET compatibility, whereas the .NET 2.0 subset is the subset of the full .NET compatibility and has smaller file sizes.
  • Target iOS Version: This selects the iOS version you want to target your game to. The lower the version number you use, the more devices can run your game. Using a higher version means that you have the option to utilize the features of this higher version, but users who have not upgraded their device to run this version will not be able to run your game.
  • Stripping Level: This option allows you to have the engine remove the unused aspects of the code to optimize the file size of your game.
    • Strip assemblies level: This will look at the scripts by the code and remove any classes and methods that are not being used.
    • Strip ByteCode level: This takes any of the .NET DLL files and strips them down to metadata only.
    • Use micro mscorlib level: This is a special option to use a small version of mscorlib. This does remove some features, including security, Reflection.Emit, remoting, and nonGregorian calendars.

When everything is set, click on Build. This will prompt you to save the build at a location on your computer. It doesn't matter where.

When the build is done, navigate to where you saved it. If you are not on a Mac, you need to copy this whole folder onto your Macintosh machine. You can do this with version control, a local network, or you can zip it up and send it to yourself and then download it on your Mac.

In order to open the project in Xcode, open the folder and double-click on the file that ends with Xcodeproj. This will open Xcode and your project.

Certificates and provisions on Mac

In the General tab in Xcode, you will see the project general settings. This includes things, such as Bundle Identifier, Version, Deployment Target, and the type of devices the game will run on.

Certificates and provisions on Mac

Under the Identity portion of the General settings tab, there is a drop-down menu for Team. Click on it and then select Add an account. This will open the Accounts window. In the bottom-left corner of this window, click on the small + sign and select Add Apple ID…. This will prompt you to log in with your developer credentials. Use these credentials to log in.

Certificates and provisions on Mac

After logging in, you can close the Accounts window. Now, from the Team drop-down list, you should be able to change it from None to your team name, which is probably the name and e-mail you used to create your account:

Certificates and provisions on Mac

To make sure the certificate went through, visit https://developer.apple.com.

At the bottom of the page, click on iOS Apps.

On the following page, if not logged in to your developer account, log in. After this, in the top-right corner, click on the link called Certificates, Identifiers & Profiles.

Under iOS Apps, click on Certificates.

When the page loads, you should have All selected in the Certificates section. On the right-hand side of your screen, you should see your name, the type of certificate, and the expiry date (1 year after the creation of it):

Certificates and provisions on Mac

Through the course of this book, we will use two different types of certificates: iOS Development and iOS Distribution.

iOS Development refers to a certificate you can use during development, and iOS Distribution is the certificate that can be used when you are ready to submit your game for distribution.

Why iTunes Connect is important

The process of setting up iTunes Connect and Developer Account is important because these are the settings we will use in Unity in order to unlock achievements, leaderboards, in-app purchases, and display iAds.

If we didn't go through the process of creating an app in iTunes Connect, it would be impossible to release a game on the App Store, and if we didn't set up the Game Center features, we wouldn't be able to have achievements or leaderboards. The same is true for in-app purchases and iAds.

Summary

In this chapter, we looked at basics of how to set up Unity and the iTunes network in order to create the iOS game. Apple has come a long way since the inception of iOS development, but the process can still be quite tedious.

In the next chapter, we will go through the game and begin to develop the input controller, which will be used to manipulate our game by the end user.

Left arrow icon Right arrow icon

Description

Over recent years, the market for mobile game development using Unity has grown multi-fold with an overwhelming 600 million gamers playing games developed using Unity engine. The newly launched Unity 5 offers a wide range of dedicated and powerful tools for iOS developers who intend to follow the basics and gradually elevate their skills to revolutionize the way they design and publish games for the App Store. From beginners, to those who are experienced making video games, this book goes through the steps of using Unity 5 to make a game from the ground up and setting the game up with iTunes Game Center features. The book begins with an introduction to setting up an iTunes Connect developer account, this will allow you to use Unity to its full potential with iOS. You will create a new app in iTunes Connect with the settings for Apple approval. You will learn, in detail, how to use Unity 5 and the programming language C# to make a fully interactive game that keeps track of player progress, Game Center Leaderboards, and Achievements, as well as displaying iAds and offering In-App purchases. Moving on, you’ll discover how to create development and release builds, enabling you to test the game on your device before finally submitting the game for Apple’s approval. By the end of the book, you will have a complete understanding of how iTunes and Unity can be used in combination to build and publish a fully interactive and reliable game to the App Store.

Who is this book for?

This book is for iOS developers who want to learn how to build games with Unity for the iOS platform. Some prior experience in game development would be useful.
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 29, 2015
Length: 230 pages
Edition : 1st
Language : English
ISBN-13 : 9781784399801
Vendor :
Unity Technologies
Languages :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to United States

Economy delivery 10 - 13 business days

Free $6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

Product Details

Publication date : Sep 29, 2015
Length: 230 pages
Edition : 1st
Language : English
ISBN-13 : 9781784399801
Vendor :
Unity Technologies
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 158.97
Unity 5  Game Optimization
$48.99
Unity 5.x Cookbook
$60.99
Learning Unity iOS Game Development
$48.99
Total $ 158.97 Stars icon

Table of Contents

8 Chapters
1. Requirements and Preparation Work Chevron down icon Chevron up icon
2. Player Input for Mobile Devices Chevron down icon Chevron up icon
3. Player Character, Obstacles, and Pickups Chevron down icon Chevron up icon
4. Editor Tool, Prefabs, and Game Level Chevron down icon Chevron up icon
5. Scene Background, the Game User Interface, and the Save Profile Chevron down icon Chevron up icon
6. Main Menu, iAds, Leaderboards, Store Purchases, and Achievements Chevron down icon Chevron up icon
7. Game Builds and Submission to Apple Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(2 Ratings)
5 star 50%
4 star 0%
3 star 50%
2 star 0%
1 star 0%
Stephen Cowart Oct 14, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I absolutely loved this book. The book is easy enough for beginners to follow. If you already know some unity, but want to know how to integrate some iOS specific functionality (i.e. gamecenter, iAds, etc.) this book is also right up your alley. I was able to complete this book over a weekend and had no problems. I'm now confident and ready to add gamecenter to my game and get it on the app store. I would highly recommend this book for anyone who is just beginning Unity or someone that just needs that extra help with iOS specific features. Well written.
Amazon Verified review Amazon
Cindy K. Oakes Jan 12, 2017
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
I started it, but had a question and tried to contact the author and was ignored.Really you tube videos are just as good.I may try it again now that I am a little better at unity.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
Modal Close icon
Modal Close icon