Extreme Makeover: Updating Your Unity3D App for iOS 7

Here are a few tricks for refreshing your Unity3D apps for the new look iOS 7. We decided to give our game Diversion the iOS 7 treatment. The first thing was to flatten the icon. Nothing says ‘tired old app’ like a glossy icon in this new age of the flattened interface:

We also decided to update the menu buttons and give them a flat look too:

The additional bonus of this was that it was now fairly trivial to add the option to change the buttons to match the colours of the iPhone 5c:

What we did was re-create all the buttons as a flat white version (luckily we still had the original source artwork!) and then used Unity’s built-in GUI system to tint the button GUI elements. All that was needed was to replace any calls to GUI.Button() with a call to a new function, TintButton():

function TintButton (position: Rect, text: String, buttonType: String) {
	GUI.backgroundColor = menuColor;
	var retval = GUI.Button (position, text, buttonType);
	GUI.backgroundColor = Color.white;
	return retval;
}

For the technical aspects of your app submission, Rob Caporetto has this great guide for Easing Submission Pain With Unity & Xcode 5. Essentially he steps you through the updates you’ll need to make to your icons, launch images and the Info.plist before submitting your app. I’m sure all these little issues will be fixed with the next Unity3D update.

There is one more little issue with the status bar appearing in some views (e.g. when launching a non-Unity view like Everyplay). I only just found out about this bug myself, so it will be making it into our next app update. What you need to do is add these lines to your Info.plist in Xcode:

<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

(Thanks to fredstales from the Unity3D Forums for this little trick)

And for extra good measure we added 5 more levels to the game – ’cause you can’t have an update without more levels!!

If you’ve got a new iPhone 5c please download Diversion and give it a try!

iTunes Link: Diversion (Free)

Ezone

Ezone.com is the home of Indie game making brothers Jamie and Simon Edis. We’ve been making games since 1994.