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

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?