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. Dismiss Notice

Question Can i use addressable to create single asset file and use it for all platforms?

Discussion in 'Addressables' started by jGate99, Sep 23, 2023.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,842
    Hit there,

    Noob here, Currently when i build i get atleast 2 files and platform specific, Is there a setting i could use to output a single file that works across all platforms?

    Please advise
    Thanks
     
  2. LuGus-Jan

    LuGus-Jan

    Joined:
    Oct 3, 2016
    Posts:
    165
    No, this is currently not possible. Asset bundles can't contain scenes and any other assets in the same bundle. That's why you'll have at least two bundles if you have at least one scene in one of your groups mixed with other types of assets.

    Additionally, some bundles may contain shaders. These are platform-dependent, and can't be shared between platforms. So you'll always have or need a separate build for each platform.
     
    jGate99 likes this.
  3. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,842
    Thank very much for detailed answer, appreciate that