Preparations

We've got a few small parameters that should be configured right now before we start testing the game on the device.

Tip

You can download the entire project with progress to this chapter, already switched to the Android platform at http://goo.gl/kQSSDo.

You will have to import or copy and paste your NGUI folder in the project's Assets folder as NGUI sources aren't included due to legal reasons.

First, we'll activate the Content Height and Width's Fit option on the Menu scene's UI Root:

  1. Open our Menu scene.
  2. Select the UI Root GameObject.
  3. Check both the Content Height and Width options' Fit checkboxes.

By forcing the UI to fit the screen in both width and height, we'll make sure that the UI is resized even if the device changes orientation from landscape to portrait.

We've finished preparing the project; let's see how we can test the game on the device.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.252.56