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:
- Drag the
DualTouchControls
prefab from theAssets/Standard Assets/CrossPlatformInput/Prefabs
folder in the Project window to the Hierarchy window. - Rename the
DualTouchControls
object toCatch_UI
in the Inspector window. - Expand the new
Catch_UI
object and delete theTurnAndLookTouchpad
and theJump
objects. When prompted to break the prefab, click on continue. - Expand the
MoveTouchpad
object and delete theText
object by selecting it and pressing delete. - Select the
MoveTouchpad
object and rename itThrowTouchpad
in the Inspector window. - Open the Anchor Presets in the Rect Transform component, and select the stretch-stretch option in the bottom-right corner while holding the pivot and position keys. This will expand the overlay to fill the screen just as we did before for the free look camera.
- Select the Image component...