Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Building Asset Bundles

Discussion in 'Editor & General Support' started by rahulkamra, Sep 27, 2016.

  1. rahulkamra

    rahulkamra

    Joined:
    Aug 16, 2013
    Posts:
    15
    Hi Guys,

    I tried building asset bundles but i hit a wall. In unity 5.0+ i can tag objects with the asset bundle name. What i want to do is to build the asset bundle with one name only. By using

    BuildPipeline.BuildAssetBundles ("Assets/AssetBundles", BuildAssetBundleOptions.None, BuildTarget.StandaloneOSXUniversal);


    this it builds all the asset bundles. I still want to use the tagging system of unity but want to create asset bundles on demand.

    Thanks
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
  3. rahulkamra

    rahulkamra

    Joined:
    Aug 16, 2013
    Posts:
    15
    Hi liortal,

    Does it use the tagging system of unity? From tagging system I mean that you can mark assets to which bundle it will go.
     
  4. rahulkamra

    rahulkamra

    Joined:
    Aug 16, 2013
    Posts:
    15
    Works like a charm . This is what i was looking for :)

    AssetDatabase.GetAssetPathsFromAssetBundle(assetBundleFullName);

    Thanks a ton.