{"id":2043,"date":"2013-06-26T21:27:20","date_gmt":"2013-06-26T18:27:20","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=2043"},"modified":"2013-08-02T00:11:06","modified_gmt":"2013-08-01T21:11:06","slug":"publishing-to-ouya-from-unity3d","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2013\/06\/26\/publishing-to-ouya-from-unity3d\/","title":{"rendered":"Publishing to OUYA from Unity3D"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"2045\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/06\/26\/publishing-to-ouya-from-unity3d\/ouya_unity3d\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/06\/ouya_unity3d.jpg?fit=680%2C417&amp;ssl=1\" data-orig-size=\"680,417\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"ouya_unity3d\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/06\/ouya_unity3d.jpg?fit=300%2C183&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/06\/ouya_unity3d.jpg?fit=680%2C417&amp;ssl=1\" class=\"alignnone size-full wp-image-2045\" alt=\"ouya_unity3d\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/06\/ouya_unity3d.jpg?resize=680%2C417\" width=\"680\" height=\"417\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/06\/ouya_unity3d.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/06\/ouya_unity3d.jpg?resize=300%2C183&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>Huh took some time to setup Unity (indie or pro) to work with OUYA.<br \/>\nMost of these notes are from the official documentation, the forum and other blogs,<br \/>\ni&#8217;ve just collected all the steps that it took me to install everything. (it was quite a mess!)<\/p>\n<h2><strong>Download PDF:<br \/>\n<\/strong> <a href=\"http:\/\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/06\/OUYA_Unity3D_notes_unitycoder_com.pdf\">OUYA_Unity3D_notes.pdf<\/a><\/h2>\n<p><strong>Links:<\/strong><br \/>\n&#8211; <a title=\"http:\/\/forums.ouya.tv\/discussion\/2239\/list-of-unity-and-ouya-tutorials-live-doc\" href=\"http:\/\/forums.ouya.tv\/discussion\/2239\/list-of-unity-and-ouya-tutorials-live-doc\" target=\"_blank\">List of Unity and Ouya tutorials<\/a> (ouya forums)<br \/>\n&#8211; <a title=\"http:\/\/www.third-helix.com\/2013\/03\/setting-up-ouya-for-unity\/\" href=\"http:\/\/www.third-helix.com\/2013\/03\/setting-up-ouya-for-unity\/\" target=\"_blank\">Setting Up OUYA for Unity<\/a> (many of the steps are from here) (third-helix.com blog)<br \/>\n&#8211; <a title=\"https:\/\/github.com\/ouya\/docs\/blob\/master\/setup.md#windows\" href=\"https:\/\/github.com\/ouya\/docs\/blob\/master\/setup.md#windows\" target=\"_blank\">Ouya Docs Windows Related stuff<\/a> (ouya github)<br \/>\n&#8211; <a title=\"http:\/\/forums.ouya.tv\/discussion\/comment\/11863\/#Comment_11863\" href=\"http:\/\/forums.ouya.tv\/discussion\/comment\/11863\/#Comment_11863\" target=\"_blank\">Fix for the missing aapt.exe path<\/a> (ouya forums)<br \/>\n&#8211; <a title=\"https:\/\/devs.ouya.tv\/developers\/docs\/unity\" href=\"https:\/\/devs.ouya.tv\/developers\/docs\/unity\" target=\"_blank\">OUYA Devs Docs For Unity<\/a> (ouya devs)<br \/>\n&#8211; <a title=\"http:\/\/www.stevetack.com\/ouya_unity_tutorial_01.html\" href=\"http:\/\/www.stevetack.com\/ouya_unity_tutorial_01.html\" target=\"_blank\">Ouya with Unity<\/a> *New tutorial Steve Tack&#8217;s Lab<br \/>\n&#8211;<a title=\"http:\/\/www.thinicegames.com\/blog\/2013\/07\/from-unity-to-ouya-quick-setup-guide\/\" href=\"http:\/\/www.thinicegames.com\/blog\/2013\/07\/from-unity-to-ouya-quick-setup-guide\/\" target=\"_blank\"> From Unity to Ouya<\/a> (tutorial, thinicegames blog)<br \/>\n&#8211; <a title=\"http:\/\/forums.ouya.tv\/discussion\/1678\/new-ouyainput-controller-framework-simple-fast-with-documantation#latest\" href=\"http:\/\/forums.ouya.tv\/discussion\/1678\/new-ouyainput-controller-framework-simple-fast-with-documantation#latest\" target=\"_blank\">OuyaInput Controller Framework<\/a> (ouya forums)<\/p>\n<p><em>*** blog broke the text layout below.. use the PDF instead ^ **<\/em><\/p>\n<p><b>OUYA &amp; Unity<\/b><\/p>\n<p><b>JAVA<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download Java (JRE): <a href=\"http:\/\/www.java.com\/en\/download\/ie_manual.jsp?locale=en\">http:\/\/www.java.com\/en\/download\/ie_manual.jsp?locale=en<\/a><\/p>\n<ul>\n<li>SDK Manager won\u2019t run in next step if you don\u2019t have java se\/jre<\/li>\n<li>Install it<\/li>\n<li>*Don\u2019t install the \u00a0toolbar it offers..<\/li>\n<\/ul>\n<p><b><br clear=\"all\" \/> <\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>ANDROID SDK<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download sdk bundle: <a href=\"http:\/\/developer.android.com\/sdk\/index.html\">http:\/\/developer.android.com\/sdk\/index.html<\/a><\/p>\n<ul>\n<li>I downloaded the x64 version (<b>adt-bundle-windows-x86_64-20130522<\/b>), 32bit one seemed to work also<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Unzip the downloaded files somewhere<\/p>\n<ul>\n<li>I used C:\\progs\\adt-bundle-windows-x86_64-20130522<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Go inside that folder \u201cadt-bundle-windows-x86_64-20130522\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Run \u201cSDK Manager.exe\u201d<\/p>\n<ul>\n<li>If it doesn\u2019t start, install Java first ^<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Install the files shown in this image as installed, select them and press Install packages<\/p>\n<ul>\n<li>I kept pressing Install packages until it didn\u2019t appear again (I guess it was updating them?)<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Note. You can uninstall the API17 (or other not used items) by selecting them and pressing \u201cDelete # Packages\u201d button<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Close \u201cSDK Manager\u201d<\/p>\n<p><b>WINDOWS <\/b>(using 7 here, apparently with 8 you need to do something\u2019s differently..)<\/p>\n<p><b>Setup path environment variables for java bundle<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Go to Control panel (windows)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 System<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Advanced System Settings<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (press Yes to allow, if user account control pops in)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 In that Advanced tab, press button \u201cEnvironment Variables\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 It opens new window \u201cEnvironment Variables\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 In user variables list, if you have there\u00a0 variable \u201cPATH\u201d (or \u201cpath\u201d..), select it<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Press Edit<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 You can now edit the variable value add to the end of line (in that very small window..)<br \/>\n;C:\\progs\\adt-bundle-windows-x86_64-20130522\\sdk\\tools; C:\\progs\\adt-bundle-windows-x86_64-20130522\\sdk\\platform-tools; C:\\progs\\adt-bundle-windows-x86_64-20130522\\sdk\\build-tools\\android-4.2.2<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <b>**NOTE: use the foldername\/path where you installed your bundle**<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Press OK<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Press OK again (to close the \u201cEnvironment Variables\u201d window)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Press OK again (to close the \u201cSystem Properties\u201d window)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 You can close Control panel window also<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 If you want to check if everything went ok, open command prompt<\/p>\n<ul>\n<li>Start menu, in the search programs and files type: cmd<\/li>\n<li>It opens \u201cDOS\u201d command prompt<\/li>\n<li>Type:&gt; path\u00a0 (press enter)<\/li>\n<li>It should print out your path variable and values (those added bundle paths should be visible there). Note if you go change them now, you need to close \u201ccmd\u201d window and start it again..<\/li>\n<\/ul>\n<p><b><br clear=\"all\" \/> <\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>WINDOWS (continued)<\/b><\/p>\n<p><b>Setup Google USB driver <\/b><\/p>\n<p><code>-\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/code>Open file \u201c *b<code>undle\\sdk\\extras\\google\\usb_driver\\android_winusb.inf\u201d, with notepad or other text editor<\/code><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Add these 3 lines under: <b>[Google.NTx86]<\/b> section:<br \/>\n;OUYA Console<br \/>\n%SingleAdbInterface% = USB_Install, USB\\VID_2836&amp;PID_0010<br \/>\n%CompositeAdbInterface% = USB_Install, USB\\VID_2836&amp;PID_0010&amp;MI_01<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Add those 3 lines also under: <b>[Google.NTamd64]<\/b> section:<br \/>\n;OUYA Console<br \/>\n%SingleAdbInterface% = USB_Install, USB\\VID_2836&amp;PID_0010<br \/>\n%CompositeAdbInterface% = USB_Install, USB\\VID_2836&amp;PID_0010&amp;MI_01<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Save the text file and close it<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Then copy&amp;paste this line into (file)explorer window: %USERPROFILE%\\.android\\adb_usb.ini<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 And press enter, it opens the ini file with notepad<\/p>\n<ul>\n<li>Or go to the folder manually: <b>C:\\Users\\username\\.android<\/b><\/li>\n<li>And open <b>adb_usb.ini<\/b> with notepad<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Add this single line to that file: 0x2836<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 So it looks like this now:<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Save and close it<\/p>\n<p><b><br clear=\"all\" \/> <\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>WINDOWS (continued)<\/b><\/p>\n<p><b>Connect OUYA &amp; PC<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Connect OUYA to your PC with the microUSB cable it came with<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Turn on OUYA<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Windows starts to install some drivers.. wait for it to finish<\/p>\n<ul>\n<li>For me it finds 2 drivers automatically, last one fails<br \/>\nUSB Composite Device : Ready to use<br \/>\nOUYA Console : Ready to use<br \/>\nOUYA : no driver founded<\/li>\n<li>It also opens Autoplay, you can browse OUYA files.. close it for now<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Go to Control Panel \/ System \/ Device Manager<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 It opens \u201cDevice Manager\u201d window<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u201cOther Devices \/ OUYA\u201d has yellow info sign next to it<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Right click on it, select Update Driver<\/p>\n<ul>\n<li>Then click\u201d Browse my computer for driver software\u201d<\/li>\n<li>Then click \u201cLet me pick from a list of device drivers on my computer\u201d<\/li>\n<li>Select Show All Devices<\/li>\n<li>press next<\/li>\n<li>Click \u201cHave Disk\u201d<\/li>\n<li>Now browse to your bundle folder (mine was; C:\\progs\\adt-bundle-windows-x86_64-20130522)<\/li>\n<li>Keep going into extras\\google\\usb_driver\\ folder (mine is at C:\\progs\\adt-bundle-windows-x86-20130522\\sdk\\extras\\google\\usb_driver)<\/li>\n<li>Once you are inside \u201cusb_driver\u201d folder, there is one file shown there: <b>android_winusb.inf<\/b><\/li>\n<li>Pick that and press Open<\/li>\n<li>Press OK (now at \u201cInstall From Disk\u201d window)<\/li>\n<li>Now it should show in the Model list: \u201cAndroid composite ADB Interface\u201d<\/li>\n<li>(and a warning on bottom, \u201cthis driver is not digitally signed!\u201d)<\/li>\n<li>Press Next<\/li>\n<li>Installer starts, and Windows security warning pops up<\/li>\n<li>Press \u201cInstall this driver software anyway\u201d<\/li>\n<li>Wait for it to finish, then press close<\/li>\n<li>Now autoplay window opens again, close it..<\/li>\n<li>Android device is shown in the Device manager, can close that window<\/li>\n<\/ul>\n<p><b><br clear=\"all\" \/> <\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>ANDROID NDK<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download ndk from here: <a href=\"http:\/\/developer.android.com\/tools\/sdk\/ndk\/index.html\">http:\/\/developer.android.com\/tools\/sdk\/ndk\/index.html<\/a><\/p>\n<ul>\n<li>I took this: <b>android-ndk-r8e-windows-x86_64.zip<\/b><\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Unzip it somewhere<\/p>\n<ul>\n<li>I placed it next to the sdk bundle at: C:\\progs\\android-ndk-r8e<\/li>\n<li>While copying it from zip file it gave 1 notice about duplicate file (from the zip), I pressed ok to replace..<\/li>\n<\/ul>\n<p><b><br clear=\"all\" \/> <\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>OUYA ODK<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download odk from here: <a href=\"https:\/\/devs.ouya.tv\/developers\/odk\">https:\/\/devs.ouya.tv\/developers\/odk<\/a><\/p>\n<ul>\n<li>I got version \u201c1.0.6 &#8211; Jun 24, 2013\u201d<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Unzip it somewhere<\/p>\n<ul>\n<li>I placed it next to the other files at: C:\\progs\\OUYA-ODK<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 **Is this even used by unity?<\/p>\n<p><b><br clear=\"all\" \/> <\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>OUYA DEVELOPER ID<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Sign into: <a href=\"https:\/\/devs.ouya.tv\/developers\">https:\/\/devs.ouya.tv\/developers<\/a><\/p>\n<ul>\n<li>Took a while to find a working forgot password tool.. it was some of these:<\/li>\n<li><a href=\"https:\/\/support.ouya.tv\/access\/help\">https:\/\/support.ouya.tv\/access\/help<\/a><\/li>\n<li><a href=\"https:\/\/gamers.ouya.tv\/gamers\/password\/new\">https:\/\/gamers.ouya.tv\/gamers\/password\/new<\/a><\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Get your developer id from the front page when you are signed in<\/p>\n<ul>\n<li>It might first ask you to fill in your details (Developer profile and Marketplace agreement)<\/li>\n<li>No need to fill Payment info and tax documents yet..(I read that it takes few months to get all those papers for non-US people..uh)<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Developer id is there, \u00a0\u201chidden\u201d below those links and above that orange Download ODK button:<br \/>\nDeveloper UUID (used for configuring in-app purchases):<b><br \/>\n<\/b>..xxxxxxx-xxxxxxx-xxxxxxx-xxxxxx-xxxxx..<\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b><br clear=\"all\" \/> <\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>UNITY<\/b><\/p>\n<p><b>Example project &amp; Developer ID<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Let\u2019s use the example projects first<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Download OUYA Unity project: <a href=\"https:\/\/github.com\/ouya\/ouya-unity-plugin\">https:\/\/github.com\/ouya\/ouya-unity-plugin<\/a><\/p>\n<ul>\n<li>Click that \u201cZIP\u201d button : <a href=\"https:\/\/github.com\/ouya\/ouya-unity-plugin\/archive\/master.zip\">https:\/\/github.com\/ouya\/ouya-unity-plugin\/archive\/master.zip<\/a><\/li>\n<li>There is some place to download unitypackages for the core\/examples, but didn\u2019t find the latest versions anywhere (some say it was inside ODK, but not in the latest version atleast?)<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Unzip that folder \u201c<b>ouya-unity-plugin-master<\/b>\u201d\u00a0 somewhere where you keep your unity projects<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Start Unity..finally!<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Open that project\u00a0 \u201c<b>ouya-unity-plugin-master<\/b>\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u201cUpgrading project\u201d, click yes (I\u2019m using 4.1.5f)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (After few minutes)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Unity opens with lots of notices and 2 errors on the console..i\u2019ll just press clear (console) for now..<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Open scene from: \/Ouya\/StarterKit\/Scenes\/SceneInit<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Select \u201cOuyaGameObject\u201d from scene hierarchy<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 In the inspector, paste your Developer_ID there<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Then press Apply (to save these settings to the original prefab, so your ID is saved there)<\/p>\n<p><b><br clear=\"all\" \/> <\/b><\/p>\n<p><b>\u00a0<\/b><\/p>\n<p><b>UNITY (continued)<\/b><\/p>\n<p><b>Build Settings &amp; Bundle identifiers<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 File \/ Build settings<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Switch platform to Android<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Remove that 1 scene from the \u201cScenes in build\u201d list<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Add these scenes to the list:<\/p>\n<ul>\n<li>0: SceneInit<\/li>\n<li>1: SceneSplash<\/li>\n<li>2: SceneMain<\/li>\n<li>3: SceneGame<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 You can set Texture Compression to DTX (Tegra)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Then go to Player settings<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Cross Platform Settings<\/p>\n<ul>\n<li>Company Name: (enter some name here)<\/li>\n<li>Product Name: (enter some name here) *This is displayed in the Ouya Play list<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Resolution\u00a0 &amp; Presentation<\/p>\n<ul>\n<li>Default Orientation: Landscape Left<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Other settings:<\/p>\n<ul>\n<li>Type your bundle identifier (com.companyname.productname)<\/li>\n<li>Minimum API level: \u202616<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Publishing settings:<\/p>\n<ul>\n<li>[x] Create new keystore<\/li>\n<li>Type some password for the fields<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Close build settings window<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Now you need to enter that same your bundle identifier to these 2 places manually:<\/p>\n<ul>\n<li>Plugins\/Android\/AndroidManifest.xml (if you double click this in Unity, it might open it one some text editor, or with monodevelop, otherwise\u00a0 just explore into that folder and open the xml file for editing<\/li>\n<li>There is line: <b>package=&#8221;tv.ouya.demo.OuyaUnityApplication&#8221;<\/b><\/li>\n<li>Replace that value with your bundle identifier,<br \/>\n<b>package=&#8221;<\/b><i>com.companyname.productname<\/i><b>&#8220;<\/b><\/li>\n<li>Save and close<\/li>\n<li>Next file is \u201c<b>Assets\/Plugins\/Android\/src\/OuyaUnityApplication.java<\/b>\u201d<\/li>\n<li>Open that with notepad or other text editor (default notepad doesn\u2019t show formatting..looks horrible..use notepad++ or others)<\/li>\n<li>In that file there is line: <b>package tv.ouya.demo.OuyaUnityApplication;<\/b><\/li>\n<li>Replace your bundle identifier there also:<br \/>\n<b>package <\/b><i>com.companyname.productname<\/i><b>;<\/b><\/li>\n<li>Save and close<\/li>\n<\/ul>\n<p><b>UNITY (continued)<\/b><\/p>\n<p><b>OUYA Window<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Select from menu Window\/Open OUYA panel<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Window opens, might show error: \u201cerror bundle mismatched\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Click the \u201cSync Bundle ID button\u201d on that window, error should disappear after few seconds<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Check 3 bundle identifiers are the same<\/p>\n<ul>\n<li>Bundle identifier: (your bundle identifier here)<\/li>\n<li>App Java Pack: package (your bundle identifier here)<\/li>\n<li>Manifest Pack: (your bundle identifier here)<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Let\u2019s check if everything is ok (if some path is grayed out, it means file was not found = problems)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Check UNITY tab, looks ok<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Select JAVA JDK tab<\/p>\n<ul>\n<li>Oh no..everything is grayed out<\/li>\n<li>Click \u201cDownload JDK6 32-bit\u201d<\/li>\n<li>You need to signup for oracle account to download this old version..uh*2<\/li>\n<li>Downloaded this: <a href=\"http:\/\/download.oracle.com\/otn\/java\/jdk\/6u45-b06\/jdk-6u45-windows-i586.exe\">http:\/\/download.oracle.com\/otn\/java\/jdk\/6u45-b06\/jdk-6u45-windows-i586.exe<\/a><\/li>\n<li>Installed to default folder (but you could specify other folder and then use that from Unity)<\/li>\n<li>After its installed, in that Java JDK tab, click \u201cSelect SDK Path\u201d<\/li>\n<li>Give the folder you installed it<\/li>\n<li>Now the paths should not be grayed out anymore<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Select Android SDK tab<\/p>\n<ul>\n<li>Everything is grayed out here also..<\/li>\n<li>Click \u201cSelect SDK Path\u201d (we had installed the android bundle earlier)<\/li>\n<li>Go to that folder, mine was \u201cC:\\progs\\adt-bundle-windows-x86_64-20130522\\sdk\u201d<\/li>\n<li>All the paths become ok, except APT Path (it doesn\u2019t find that \u201caapt.exe\u201d<\/li>\n<li>For now we just fix it manually from the code:<\/li>\n<li>Open this script from project folder: Ouya\/SDK\/Editor\/OuyaPanel.cs<\/li>\n<li>Go to line:\u00a0 317<\/li>\n<li>Duplicate that line and comment out the original:<br \/>\n\/\/pathAAPT = string.Format(&#8220;{0}\/{1}\/{2}&#8221;, pathSDK, REL_ANDROID_PLATFORM_TOOLS, FILE_AAPT_WIN);<\/li>\n<li>Then modify the duplicated line to:<br \/>\npathAAPT = &#8220;C:\/progs\/adt-bundle-windows-x86_64-20130522\/sdk\/build-tools\/android-4.2.2\/aapt.exe&#8221;;<\/li>\n<li>*Use your drive and folder, go check where that aapt.exe is and make sure your slashes are correct way \u201c\/\u201d, not backslashes \u201c\\\u201d<\/li>\n<li>Save the script and Close, open the Window\/Ouya Panel again<\/li>\n<li>Now the APT Path line should be ok also<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Select Android NDK tab<\/p>\n<ul>\n<li>Click \u201cSelect NDK Path\u201d<\/li>\n<li>Give the NDK path (we installed that \u201candroid-ndk-r8e\u201d \u00a0earlier)<\/li>\n<li>Now NDK Path becomes ok<\/li>\n<li>Click \u201cSelect NDK Make Path\u201d<\/li>\n<li>Find the make.exe folder, mine was under \u201candroid-ndk-r8e\\prebuilt\\windows-x86_64\\bin\u201d<\/li>\n<li>Now that folder is OK also<\/li>\n<\/ul>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Getting closer..<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Now back to OUYA tab<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Click \u201cCompile\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Some cmd windows appear and then disappear..not sure whats happening<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Now let\u2019s close ouya panel<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Just in case, let\u2019s do also from menu OUYA\/Generate OUYA Unity Plugin<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Connectt OUYA to your pc and start it, if it wasn\u2019t on<\/p>\n<p><b>UNITY (continued)<\/b><\/p>\n<p><b>Publishing to Device<\/b><\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Open SceneInit<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 File \/ Build &amp; Run\u00a0\u00a0\u00a0\u00a0\u00a0 (remember to do the earlier parts, adding the scenes in list etc)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 It opens the Build settings window..I guess need to give the output path once first<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Click Build Button<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Give some folder for the .apk file (put it in your pc, not in the ouya device drives)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Let\u2019s name it test.apk<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Click save<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (building\u2026)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Unity asks for \u201cSelect Android SDK root folder\u201d (if you had not given it before in Edit\/Preferences\/External tools\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Give the Android bundle folder, mine was \u201cC:\\progs\\adt-bundle-windows-x86_64-20130522\\sdk\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (building\u2026)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Done.<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Put Ouya in the main orange screen (with play, discover, make, manage)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Close the build settings window in Unity<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Let\u2019s do it again, File \/ Build &amp; Run<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u201cDetecting Android device\u201d\u2026\u201dPushing new content to device..\u201d<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ouya screen jumps a bit, let\u2019s go to PLAY menu<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Our game is now listed on the play menu (yes, it is that icon with horrible mess &amp; colors)<\/p>\n<p>&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Let\u2019s try to run it<\/p>\n<ul>\n<li>Yay! We got 2 unity default GUI buttons, which we cannot even press..(maybe if plugin a mouse we could?)<\/li>\n<li>But now we can start building some game on that scene then..<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Huh took some time to setup Unity (indie or pro) to work with OUYA. Most of these notes are from the official documentation, the forum and other blogs, i&#8217;ve just collected all the steps that it took me to install everything. (it was quite a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2045,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[148,3],"tags":[197,508,205,510,506,507,171,509],"class_list":["post-2043","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-help","category-unity3d","tag-android","tag-device","tag-indie","tag-java","tag-ouya","tag-publishing","tag-unity","tag-usb"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/06\/ouya_unity3d.jpg?fit=680%2C417&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-wX","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/2043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=2043"}],"version-history":[{"count":12,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/2043\/revisions"}],"predecessor-version":[{"id":2102,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/2043\/revisions\/2102"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/2045"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=2043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=2043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=2043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}