O'Reilly logo

Augmented Reality Game Development by Micheal Lanham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Throwing the ball

We now have a great-looking ice ball just in front of our walking monster. Time to get that ball in motion using the following steps to add the objects and scripts:

  1. Drag the DualTouchControls prefab from the Assets/Standard Assets/CrossPlatformInput/Prefabs folder in the Project window to the Hierarchy window.
  2. Rename the DualTouchControls object to Catch_UI in the Inspector window.
  3. Expand the new Catch_UI object and delete the TurnAndLookTouchpad and the Jump objects. When prompted to break the prefab, click on continue.
  4. Expand the MoveTouchpad object and delete the Text object by selecting it and pressing delete.
  5. Select the MoveTouchpad object and rename it ThrowTouchpad in the Inspector window.
  6. Open the Anchor Presets in the Rect ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required