Importing custom packages into your project

Custom Unity packages are available from a variety of sources, and they can be very helpful when developing a project.

Getting ready

As its title implies, this recipe requires a custom package to be imported. If you need one for testing purposes, please use the one inside the folder named 0423_01_09-11.

How to do it...

To import a custom package, follow these steps:

  1. Inside the Unity editor, access the Assets menu.
  2. Enter the Import Package sub-menu and choose the Custom Package... option.
  3. Browse to the package file you have saved on your disk and click Open.
  4. Preview package contents in the top-right Preview window, if you like.
  5. Make sure every needed component is selected and click Import.
  6. Package contents should be ready and listed in the Project view.
    How to do it...

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

How it works...

Custom packages are commonly used to distribute a number of assets inside a single compressed file. As they are made by third parties, the content inside those packages may vary, as they can include scripts, 3D models, texture maps, materials and any other file handled by Unity. Once imported, the package content is uncompressed into your project's Assets folder, and can be accessed through the Project window.

There's more...

Third-party made content can also be found, downloaded, and bought from the Unity Asset Store. For more information, access http://unity3d.com/unity/asset-store/.

See also

  • The Importing Unity packages into your project recipe.
  • The Exporting custom packages from your project recipe.
  • The Adding custom packages to Unity's quick list recipe.
..................Content has been hidden....................

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