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

Mobile device emulation

If you are using a UDK version from June 2011 onwards, once you've made a level, you can test how it may appear on an iPad or similar mobile device. This recipe covers the feature and also briefly explains how to deploy a game to a device.

How to do it...

  1. With your map loaded press the Emulate Mobile Features icon, the first in the row of icons pictured below. This shows how the game may appear visually.
    How to do it...
  2. Save your level, then click the icon Edit Mobile Previewer Settings [ How to do it... ]. Choose Resolution | iPad and also choose Orientation | Landscape. Of course, you can set these according to your target output. In Features, ensure that iPad is set. Press Save Settings. You could alternatively choose all the iPhone 4 settings.
    How to do it...
  3. At the bottom of the Settings window there is a Play button.
  4. Alternatively, you can also click the icon in the editor next to the settings icon, called Start this level on Mobile Previewer [ How to do it... ]. That's really all there is to it. Your PIE session should include a UI with on screen joysticks that emulate iPad controls. Mouse dragging stands in for input from fingers on a touch screen.
  5. When you are happy with your level performance running in device emulation mode, you can actually install to an iOS game directly from the editor using the Install on iOS device icon [ How to do it... ]. Right-click on this to use a command line in order to enter game-specific settings such as the number of players.
  6. The game will cook through a background instance of Frontend then provide a dialog for deployment.
  7. Bear in mind that to actually send an iOS game to hardware you need to be an iOS registered developer. You can register as one from the dialog after pressing Install on iOS device, or do so through Apple's website: http://developer.apple.com/programs/ios/; though because Apple does levy an annual fee for the right to develop on their platforms you want to be ready to do so before you start paying out. Once you are registered you can proceed through the Unreal iOS Configuration dialog to provision and deploy your game. More information on this is available through a link to UDN inside the dialog itself. If you run this by mistake, it is quite okay just to cancel it.
    How to do it...
  8. For provisioning, should you be taking things that far, it is recommended on PC to use Safari, given it is Apple's main web platform, as iOS provisioning is generally aimed at Mac computers. Once through the provisioning stage you'll wind up with certification files to import back into the Unreal iOS Configuration wizard, and once those are imported, the last step is to set the bundled content names and display names that will be used by the device for your game's icon.
  9. Once those steps are complete, and you press Ready to Package, your game is sent to the device. This assumes you have gone through the steps starting from the editor, as currently Unreal Frontend itself doesn't complete this stage.
  10. Existing developers of iOS applications who wish to develop iOS games using UDK must export their certificate and private key from the Keychain Access application in order to import it on a PC running UDK.
主站蜘蛛池模板: 疏勒县| 上虞市| 定兴县| 镇雄县| 舟山市| 荔波县| 藁城市| 青田县| 邵武市| 甘泉县| 玉田县| 松阳县| 宿州市| 延津县| 威远县| 丹棱县| 新田县| 乐陵市| 浦江县| 虹口区| 宁武县| 手机| 兴海县| 香格里拉县| 巴彦淖尔市| 宁城县| 天气| 深州市| 海原县| 筠连县| 托克托县| 准格尔旗| 镇坪县| 新安县| 宣化县| 南川市| 常熟市| 华宁县| 双辽市| 丁青县| 五台县|