Search Unity

Cross platform asset bundles?

Discussion in 'Asset Bundles' started by _Adriaan, Jul 23, 2021.

  1. _Adriaan

    _Adriaan

    Joined:
    Nov 12, 2009
    Posts:
    481
    Hey there!

    I'm making a music game that downloads the right songs using asset bundles uploaded to a CDN. Because the game supports iOS, Android, Windows, and macOS, I need to compile and upload 4 identical-looking versions of each asset bundle each time I change the songs, and that seems a little bonkers to me. Given that the music compression is the same on each platform (Vorbis / .ogg), can't I compile the bundles for 1 platform but load them on every platform?
     
  2. OndrejP

    OndrejP

    Joined:
    Jul 19, 2017
    Posts:
    304
    I'd like to know the answer to this as well. At least to me, the AssetBundle packaging seems identical to me for desktop platforms. My guess is that it should work, have you actually tried it?

    Are the built bundle binaries identical?
     
  3. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    It's been a while since I tested this, but I don't remember there being anything preventing you from loading a bundle built for another platform. The worst that could happen is textures and shaders not working. Does it give you some sort of error?