Time for action – creating the pointer

We are going to start by creating an object that will point at targets. We will be making a prefab that can be used repeatedly. However, you will need a model for the player to see. We will use a pie-slice type mesh. The size isn't particularly important; we will be adjusting the scale later. Let's perform the following steps to create the pointer:

  1. Once you have created and imported your mesh, add it to the scene.
  2. Create an empty GameObject and rename it to IndicatorSlice.
  3. Make your mesh a child of IndicatorSlice and position it so that it points along the GameObject's z axis. IndicatorSlice will be centered in our indicator. Each slice that is created will have its z axis pointing in the direction of a target. ...

Get Unity Android Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.