Unity Community


Results 1 to 8 of 8

  1. Posts
    129

    Build asset bundle .unity3d

    hi, all
    Recently checked with the unity asset bundle example. The import thing is understood. But how about the build of the asset bundle done, its not given brief anywhere or i am not able to get to the right track.

    As i am creating the build from Unity app, by going to file menu and clicking on build settings and making a build (thou i think its not a proper way). But the problem is the file generated this way is different as per the file given with unity example of asset bundle, BOTH HAVE THE SAME EXTENSIONS .unity3d

    So how to build that unique asset bundle file with the commandline or script integration to add objects in the build. to get the .unity3d asset bundle file

    Any detailed example for the build in this case ?
    Unity Pro | Iphone Advance


  2. Location
    Zürich, Switzerland
    Posts
    26,572
    asset bundles are build through editor scripts you write.
    The asset bundle example actually contains two which should do all what you need and offer a good base for more sophisticated scripts.

    keep in mind: asset bundles can not contain script code! script code must be contained in the application itself


  3. Posts
    129
    Quote Originally Posted by dreamora
    asset bundles are build through editor scripts you write.
    The asset bundle example actually contains two which should do all what you need and offer a good base for more sophisticated scripts.

    keep in mind: asset bundles can not contain script code! script code must be contained in the application itself
    Thanks dreamora, yaa the said part by you is ok.

    But the thing i was asking is "So how to build that unique asset bundle with integration to add objects in the build. to get the .unity3d asset bundle file "
    And in the example i don't see any exampled app to generate the asset bundle build.

    Also do you mean to make an asset bundle, through command line arguments to create a build. If yes than how can that be accomplished ?

    And that build will be asset bundle having .unity3d file as extension ?
    Unity Pro | Iphone Advance


  4. Location
    Bogota
    Posts
    2
    Quote Originally Posted by yogesh
    Also do you mean to make an asset bundle, through command line arguments to create a build. If yes than how can that be accomplished ?

    And that build will be asset bundle having .unity3d file as extension ?
    Is not hard to create and asset bundle. First of all, you have to have the \Assets\Editor\ExportResource.js file also \Assets\Editor\AutomatedExportResources.js, then you create the graphic components and save them into a prefab.

    then you select that prefab on the project section and go to Asset->Build AssetBundle From Selection... there you choose the output path and thats all.

    you will have a valid .unity3d asset bundle.

    That's the way I do it!
    Attached Files
    Harvey Botero
    FLASH/UNITY developer
    @whgandalf
    Bogota - Colombia


  5. Posts
    129
    hi,
    came to know the same that you told, and worked up a while ago on it.
    still thanks for reply
    Unity Pro | Iphone Advance


  6. Posts
    414
    Hey guys,

    So the bit which Dreamora said about not being able to include script code in the asset bundles... I assume that if I attach a script to an object that would not come across in the asset bundle???

    That does seem a little limiting. Am I right in assuming that for example I could therefore not have some new characters with AI attached as part of an asset bundle?

    Any thoughts please?


  7. Location
    Zagreb, Croatia
    Posts
    1,377
    Hi,

    can someone, that had been working extensively with asset bundles, share a few toughts? Thanks in advance...

    - as I figured out, when asset bundle is exported, it doesn't work in other projects (as expected), but only when loaded by the one by which it is created (because of the script references, etc.)
    - when loaded from another project, the scripts are missing (also some people say colliders, textures, lightmaps(!))
    - does it mean that I can't separate project "levels" or "sectors" into different Untiy projects and delegate them to different people?
    - the motivation for this is that now we got a one gigantic project (many hundreds of MB in size) which contains both code and assets, so any wrong move could put you into situation of waiting assets to be rebuilt (cca 2 hours)
    - the other motivation is to delegate work and the responsibility for different parts of design (considering the *package* or *asset bundle* as an output of the artist)
    - I've seen people loading scene parts as separate asset bundles, but keeping one gigantic collider in the main project, which covers the whole level. Is this the only way to do it? Does it mean that when a new sector/or level is added to the application, the application itself has to be rebuild because of this collider, the new version of it has to be published online, the people have to download a new version... sounds crazy..


  8. Location
    China
    Posts
    1,009
    I make a tool, find my asset folder all *.fbx fils,write a cmd list text..
    Attached Images  
    My Blog:Http://Www.1Vr.Cn
    Unity Tencent QQ Group:2453819,34643309,7838310,7838228
    Unity Forum: http://www.iu3d.com
    Development Environment:Unity Pro & iPhone Adv & MacBook Pro & iPhone & iPod & iPad & Zpad.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •