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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question Creating an Asset Bundle of a specific folder of prefabs via script

Discussion in 'Asset Bundles' started by conlanstewart, Mar 30, 2022.

  1. conlanstewart


    Mar 2, 2022
    Hello everybody,

    I'm making an editor tool that is modifying new assets I bring into a project, organizing them, and creating prefabs of those objects in a folder with a specific structure. I'm trying to create an asset bundle from that folder, which you would normally do by just dragging and dropping the the folder I created into the asset bundle browser, and hitting build. How can I do this step (dragging and dropping the folder) or something that has a similar effect via script?