Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Create asset bundle at runtime without unity editor

Discussion in 'Addressables' started by Nikowill1, Oct 18, 2019.

  1. Nikowill1

    Nikowill1

    Joined:
    Feb 7, 2017
    Posts:
    5
    Anyone knows any solutions? Is new Addressable asset system gonna work? Thanks!
     
  2. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    762
    Hey @Nikowill1 no, it isn't possible to create Asset Bundles at runtime. Out of curiosity, what's your use case?
     
  3. Nikowill1

    Nikowill1

    Joined:
    Feb 7, 2017
    Posts:
    5
    Hi David,
    Thanks for your reply, I'll try to explain what we are trying to do, ideally there will be a asset bundle generator build with unity, several kind of raw data as input, some per process will be apply on those raw data which involves human input (which can not be done automatically), the modified data will be reorganized with description file(such as json) and save as a asset bundle on disc.
    Later on this bundle can be send out then load into a different simulation which can parse and display the bundle.
     
  4. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    @Nikowill1 sounds like a UGC system, pack as asset bundle, and distribute as addressable system.

    If so, the closer approach could be setup a build service on server side, consist of an api gate, a message queue and a bunch of headless unity processes to generate addressable bundle and catalog.

    However create your own serialization (like https://github.com/jacobdufault/fullserializer) and distribution system maybe also a good choice, if creating asset bundle at client side is strongly preferred.
     
    Last edited: Oct 19, 2019
    SolidVirtual and davidla_unity like this.
  5. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    762
    @Nikowill1 I see, that's interesting. I second what @Favo-Yang said. Hopefully one of those solutions will suit your needs.