Importing your own content

After you have created a 3D model, audio clip, movie clip, or texture, you can import it into your project. In this recipe, we will learn how it can be done.

How to do it...

Follow these steps to import an asset:

  1. Inside the Unity editor, access the Assets menu.
  2. Select the Import New Asset… option.
  3. Browse to your file and click Import.
  4. Your file should be now listed in the Project browser, as shown here:
How to do it...

How it works...

Unity makes a copy of your file, converts it to an appropriate format (if necessary) and saves it into the Project browser's Assets folder.

There's more...

Here's a couple of helpful pieces of information on the subject:

Organizing it with the Project view

Unity updates its Project view whenever a new file is added to the Assets folder. You could then save or export your work directly into that folder. You could also paste or move multiple files into there. However, you should not reorganize or rename your imported files via your OS file management system (Window's Explorer or Mac OS Finder), as this could damage important information kept by Unity about those files.

Exporting your assets to Unity 4.x

If you are not sure about how to prepare and export your work to Unity, or which file format you should use, please check out Unity's documentation at http://docs.unity3d.com/Documentation/Manual/AssetImportandCreation.html for a very comprehensive guide on the subject. Some other useful pages regarding the subject are:

See also

  • The Importing Custom packages into your project recipe.
..................Content has been hidden....................

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