Importing the non-player characters into our game

You are now ready to import the asset package for our game's non-player character, the Cucumber Beetle. Go through the following steps to import the package:

  1. Download the Cucumber_Beetle.unitypackage file from the publisher's companion website
  2. In Unity, with your game project open, select AssetsImport PackageCustom Package from the top menu
  3. Navigate to the location of the asset package you downloaded in step 1 and click the Open button
  4. When presented with the Import Asset Package dialog window, click the Import button

As you will notice, the Cucumber_Beetle asset package contains several assets related to the Cucumber Beetles, including a controller, scripts, a prefab, animations, and other assets: 

Now that the Cucumber_Beetle asset package has been imported into our game project, we should save our project. Use the File | Save Project menu option.

Next, let's review what was imported.

In the Project panel, under Assets | Prefabs, you will see a new Beetle.Prefab. Also in the Project panel, under Assets, you will see a Beetle folder. It is important that you understand what each component in the folder is for. Please refer to the following screenshot for an overview of the assets that you will be using in this chapter in regards to the Cucumber Beetle:

The other assets in the previous screenshot that were not called out include a readme.txt file, the texture and materials for the Cucumber Beetle, and the source files. We will review the Cucumber Beetle's animations in the next section.

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

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