1 00:00:04,250 --> 00:00:04,700 ‫All right. 2 00:00:04,700 --> 00:00:10,490 ‫So for this video, I needed to use the recording of a friend who recorded that for me because I personally 3 00:00:10,490 --> 00:00:11,810 ‫don't have an Android device. 4 00:00:11,810 --> 00:00:17,540 ‫But this video will show you how you can set up your machine, in this case your Windows machine, in 5 00:00:17,540 --> 00:00:21,050 ‫order to run a game on your Android device. 6 00:00:21,050 --> 00:00:27,740 ‫So let me just run this video and then I'll tell you what you need to do in order to play the game on 7 00:00:27,740 --> 00:00:29,480 ‫your Android phone directly. 8 00:00:29,480 --> 00:00:35,450 ‫So you will need Android studio and you will need to go to a developer at Android dot com and then you 9 00:00:35,450 --> 00:00:37,490 ‫can download Android studio. 10 00:00:37,580 --> 00:00:40,550 ‫Now you need to read it and accept it. 11 00:00:40,550 --> 00:00:41,870 ‫It's quite a big file. 12 00:00:41,870 --> 00:00:45,440 ‫It's 0.9 gigs and it will 1.9 gigs and it will take a while. 13 00:00:45,440 --> 00:00:52,100 ‫So as soon as that's done, choose Android, Studio, Android SDK and Android version and then install 14 00:00:52,100 --> 00:00:53,630 ‫everything next, next. 15 00:00:54,350 --> 00:00:57,830 ‫And as soon as that's all done, you don't need to start Android Studio. 16 00:00:57,830 --> 00:01:03,320 ‫You can simply close the installation and in order to do that, you only need to search for folder options. 17 00:01:03,320 --> 00:01:10,610 ‫And here you need to show all the files and folders because the folder that we need is usually hidden. 18 00:01:10,790 --> 00:01:12,740 ‫So just save that. 19 00:01:12,770 --> 00:01:16,160 ‫All right, let's go to your explorer then to see. 20 00:01:16,190 --> 00:01:21,320 ‫And they're under users, your username, and then you'll find appdata. 21 00:01:22,150 --> 00:01:25,300 ‫Local Android SDK. 22 00:01:25,510 --> 00:01:27,670 ‫So that's the path that you need. 23 00:01:28,450 --> 00:01:29,320 ‫Copy that. 24 00:01:29,890 --> 00:01:32,800 ‫Go back to your unity file. 25 00:01:32,950 --> 00:01:41,230 ‫Then you go to edit preferences, external tools, and here you can enter the Android SDK. 26 00:01:41,350 --> 00:01:44,560 ‫So there you need to pass the path in. 27 00:01:44,800 --> 00:01:46,870 ‫So paste it in. 28 00:01:47,140 --> 00:01:48,100 ‫Save it. 29 00:01:48,730 --> 00:01:49,400 ‫Close it. 30 00:01:49,420 --> 00:01:54,400 ‫And next, we'll need to connect the device via USB to your computer. 31 00:01:55,060 --> 00:01:56,980 ‫Then you go to build settings. 32 00:01:58,480 --> 00:02:00,250 ‫Choose Android here. 33 00:02:01,100 --> 00:02:08,240 ‫Choose the scene that you want to have it open since for example, then the main thing goes in, then 34 00:02:08,270 --> 00:02:10,520 ‫go to Android Switch platform. 35 00:02:12,800 --> 00:02:16,460 ‫And then unity goes over to your android, as you can see. 36 00:02:16,490 --> 00:02:22,820 ‫Now we can go to player settings and our game should only be showed in landscape mode. 37 00:02:22,970 --> 00:02:27,120 ‫So we don't need any rotation and those kind of things. 38 00:02:27,140 --> 00:02:30,470 ‫So let's go to resolution and presentation. 39 00:02:31,600 --> 00:02:35,950 ‫And then go to default orientation and let's go to landscape left. 40 00:02:36,370 --> 00:02:39,370 ‫So it will always be in landscape this way. 41 00:02:39,970 --> 00:02:40,540 ‫All right. 42 00:02:40,540 --> 00:02:47,580 ‫As soon as that's done, go to other settings and here we'll need the package name and here we enter 43 00:02:47,590 --> 00:02:51,250 ‫com dot and your company name, for example. 44 00:02:51,250 --> 00:02:53,260 ‫Just simply test and for the product. 45 00:02:53,470 --> 00:02:55,390 ‫Just fruit ninja clone for example. 46 00:02:55,390 --> 00:02:56,560 ‫Then the version. 47 00:02:57,550 --> 00:03:02,230 ‫Then next go to public settings and use existing keystone. 48 00:03:02,440 --> 00:03:05,800 ‫And here use unsigned debug. 49 00:03:05,830 --> 00:03:07,270 ‫Now save the scene. 50 00:03:07,780 --> 00:03:09,010 ‫Save the project. 51 00:03:10,960 --> 00:03:13,390 ‫And then go to build and run. 52 00:03:13,810 --> 00:03:15,370 ‫It will create the APK. 53 00:03:16,350 --> 00:03:18,730 ‫And that might take a little while. 54 00:03:18,750 --> 00:03:24,720 ‫So now it's copied onto your device and will be started on your device directly. 55 00:03:26,700 --> 00:03:27,210 ‫All right. 56 00:03:27,210 --> 00:03:28,470 ‫And there we are. 57 00:03:28,500 --> 00:03:30,660 ‫So let's turn around the phone. 58 00:03:30,660 --> 00:03:36,870 ‫And as you can see, there is our game and we can destroy the fruits, cut them. 59 00:03:36,870 --> 00:03:41,580 ‫And as soon as the bomb comes up, we can hit it and our overlay comes up. 60 00:03:41,580 --> 00:03:43,530 ‫So game over, panel comes up. 61 00:03:43,530 --> 00:03:49,320 ‫But it's a little small, but those are the things that we are going to take care of in the next video. 62 00:03:49,320 --> 00:03:52,020 ‫So we're going to do some adjustments. 63 00:03:52,110 --> 00:03:57,810 ‫But in general, as you can see, our game works and you can play it on your Android phone. 64 00:03:58,140 --> 00:04:01,620 ‫So now you also know how to export a game for Android.