官术网_书友最值得收藏!

Time for action – exporting OUYA packages from Unity

The last thing you need before you can link everything you've downloaded to Unity is the Unity OUYA plugin. This can be downloaded directly from the developers at https://github.com/ouya/ouya-unity-plugin. Perform the following steps to install the plugin:

  1. Click on the button on the page that says Download ZIP and put it in a location that's easy to find. When it has downloaded, unzip the archive and open Unity.
  2. In the Unity window, navigate to File | Open Project…, browse the unzipped folder, and click on Open. On Mac OS, you may need to click on Open Other… to access the folder's location.

    Depending on the latest versions of Unity and the plugin, you may be prompted to upgrade the project to work with the latest version of Unity. If it does, then accept the prompt; if you don't receive the prompt, it will work fine as it is.

    After opening the plugin files as a project, two new drop-down lists will appear on the top toolbar of Unity: OUYA and NGUI.

  3. Open the OUYA menu and click on Export Core Package, as shown in the following screenshot, to save the core package as a Unity package file that you can import into all of your projects:
    Time for action – exporting OUYA packages from Unity

    When exporting packages from Unity, the package files will always be found in the root directory of the project, which in this case is your ouya-unity-plugin-master directory.

  4. Repeat this process for the other two packages until you have all three exported together. You only need the Core Package, but the others serve as a good reference for your own learning.

    You'll import these exported packages into any project that you develop for the OUYA, so it's a good idea to keep them handy.

  5. Save a copy of your exported packages to your Development folder in your root or home directory so that you can access them easily later.

It's also a good idea to copy the NGUI package from ouya-unity-plugin-master/Assets/NGUI to the same place, as it's helpful to a lot of Unity's features (particularly the user interface). However, you won't be required to use NGUI in any of the prototypes or games you develop in this book.

What just happened?

You just exported all of the required OUYA packages from the ODK project, which you'll now be able to import into any new project to set it up for deployment on the OUYA. If you ever lose these packages or want to update them to a new version of the OUYA SDK, simply re-export the packages from the ouya-unity-plugin-masters project again.

主站蜘蛛池模板: 响水县| 阳高县| 同心县| 阳新县| 龙门县| 桐庐县| 车险| 闸北区| 泰州市| 台南县| 当阳市| 阿鲁科尔沁旗| 凉城县| 榆中县| 仁化县| 全椒县| 苏尼特右旗| 叶城县| 岗巴县| 浦江县| 辽宁省| 繁昌县| 孟村| 邹城市| 柏乡县| 安溪县| 三江| 安义县| 金溪县| 江陵县| 金门县| 禄丰县| 农安县| 德兴市| 永春县| 黔西县| 庄河市| 米脂县| 乌什县| 岐山县| 凌海市|