Adding cucumbers to our terrain

Cucumbers will be used in our game to give the beetles something to search for and to eat. We will place several cucumbers in the sandbox area and, in Chapter 10, Scripting Our Points System, keep track of how many there are during gameplay. In this section, we will prepare the cucumbers for our use and populate them in our game.

You previously downloaded the necessary assets for the cucumber. As you can see in the following screenshot, Cucumber is accessible in the Assets/Cucumber folder. You will note that when we select Cucumber, the bottom of the Project panel identifies the Cucumber file as a .fbx file:

The .fbx file was exported from the 3D modeling software so we can use it in our game. When that asset ...

Get Getting Started with Unity 2018 - Third Edition 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.