Search Unity

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

    conlanstewart

    Joined:
    Mar 2, 2022
    Posts:
    12
    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?