Click here for a transcript of the Mobile Development video.
Hello everybody and welcome to another one of our live trainings on Unity. My name is Mike Geig and today we will be talking about mobile development. If you are on our Facebook page, then you've seen a version of this picture before. But I decided to spruce it up with an American flag cape because, what can I say, I'm a patriot. So today we are going to be talking about mobile development and we are going to be basically targeting kind of how we start, right. You're going to notice that a lot of a lot of programming for games for mobile is is pretty much exactly the same for for web or for desktop. So I don't really need to get into a lot of depth there because really not a lot of depth is needed. When you're thinking about mobile platforms there's really only two things you need to keep in mind that's different from say desktop or anything else, and that is A) How are you going to control the game? because input is very limited on mobile device and B) What kind of screen real estate are your going to have and what kind of hardware power are you going to have? because you know we will know that mobile devices can't run as intensive games as anything else. We've got a lot of people participating in chat today so obviously I'll be moving along with the lesson and trying to keep up trying to keep up with the chat. So if you hear me pausing for bit it's because I'm reading chat and trying to answer your questions. I haven't said it in a while but, you know, if you have questions during the lessons obviously post your questions in chat and you know I'll try to answer them. Okay so yes I hope you all enjoy my my my super-awesome picture there, okay. So someone had mentioned before something about data persistence. That was last week. This week is mobile development. I changed the title but some people are still seeing it say data persistence. So today is mobile. Yeah, so so there you go.
Okay so before we begin, like always, if you have any questions, comments, concerns, anything like that, you can follow us on Twitter @unity3d @mikegeig, which is me, @willgoldstone and @theantranch. We love talking to you on Twitter and yeah so if you're here, you have any questions, or just want to talk, twitter, twitter it up. For those of you who watched last week, I was in London on a mac and trying to figure that whole thing out. Today I am back in my house and so I'm back on my computer, windows, which I'm much more familiar with and I have my mechanical keyboard. So I know some of you last week we're really missing the mechanical keyboard, this week its back so if you don't like the mechanical keyboard, sorry, its back. But yeah. Oh someone asked in chat if I work for Unity. I do in fact work for Unity. I am a screencaster/trainer for Unity. So, hello.
Okay, so let's let's start talking. So the first thing we're going to do, when when when doing any mobile development in Unity, is we need to set up our mobile development environment. By default, Unity integrates with the SDKs for whatever mobile device we want, but we have to actually have those. So some of the steps obviously I'm not going to talk about right now, is that you need to download the SDK. So if you're using Android, you need to download the Android SDK. And the documentation on Android is on Android's website on how to do that. You download and install the Android SDK and update it and do all that stuff. And if you're on iOS, you need to download Xcode and all the the apple goodness stuff, alright. So those two things have absolutely nothing to do with Unity so I'm not really going to talk about them, but they have to be done.
Let's see here question, Can you use the Android Nexus 7? Absolutely, yeah you can pretty much do a lot of Android and iOS and and whatnot. And there are some limitations as to which stuff Unity will run on. but for the most part we cover pretty much all devices or most devices, and more and more every day. So assuming we've already downloaded and installed Android or iOS, we need to basically tell unity about it. Now with iOS, Unity is automatically going to know about it. So you just download your Xcode, you know you set that all up in Unity, we'll know where it is because it is always in the same spot. You will need an iOS developers license. I'm not an iOS developer at al. I don't own a Mac. But I believe it's a hundred dollar license fee through them, though I'm not entirely certain. And you need to log into that service before you can do iOS dev. The Android SDK is free, though it's it's it's a little complicated to get set up, so obviously consult the documentation because it's so it's a little bit different. Now Android, since you can install the Android SDK pretty much anywhere, will not automatically be recognized by Unity, so you need to tell Unity where it is. And to do that, you're just going to come into edit, and then Preferences, and click this external tools option. Right here you're going to see Android SDK location and you just need to tell it where you saved that information. And from then on out it will it will say, hey ok so we know where your SDK is, and all that is working fine.