• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by novo · Oct 09, 2010 at 06:48 PM · assetbundleexportpackagedocumentation

What is the difference between a package and an asset bundle?

There seems to be little to no documentation on either, so I'm wondering if the community can provide me with the answer. When I choose "Export Package..." from the Assets menu, does it create an AssetBundle? I'm familiar with the AssetBundle API and my understanding is there is no public Package API. If someone could point me toward some other relevant documentation, that would be great.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
14
Best Answer

Answer by Ray-Pendergraph · Oct 09, 2010 at 10:39 PM

A package is an edit time feature that lets you export and import collections of source code and project artifacts (stuff that shows up in the project hierarchy). For instance, if someone wrote a tool with several C# classes and had several Textures, Materials, editor classes, etc and other assets to go with it they could package it as a Unity package. Creating a package essentially (I believe) creates a tar-gz of the source files and assets that you export with the package wizard. This is similar to a zip file. When you load a package it Unity just explodes the original structure of assets and source files intact into your project. Then they are part of the project for you to alter and use.

An asset bundle is a binary, proprietary file that Unity uses to load assets at runtime in a standalone or over the web via the web player. Compiled classes or source (or unconverted art assets for that matter) are not allowed in bundles . What is allowed are Scenes, converted/compressed art assets, audio files, video files, imported and converted FBX files, etc. The main use of this is fragmenting the amount of these types of assets that are loaded at one time. Keep in mind that these are necessarily loaded into memory as Unity does not utilize the hard drive for these matters (for security and performance). So, for a large game you would not want to have the entire thing loaded into memory (especially if you are not using those levels/assets) so bundles allow you to split things out for better management. You can unload groups of assets that you are done with or not using at the time.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image novo · Oct 10, 2010 at 01:28 PM 1
Share

Very informative. Thanks, Ray.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Export a slimmer project 0 Answers

Export assetbundle in unity 2 Answers

Exporting and keeping scripts 0 Answers

Correct Way of Exporting Packages 1 Answer

Include parent/super class in a package export? 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges