As the title says, how do I make Unity build and load my bundles into the StreamingAssets folder when changing the local load and build paths in the profile settings?
And as an extra question, If bundles are missing from my build of the game and I provide a download link in the remote section; would it automatically download those bundles and put them where the local paths are?
Hi @MaxIsJoe130 using the default local build path does put bundles in a subfolder inside StreamingAssets folder at build time. If you take a look at AddressablesPlayerBuildProcessor.cs, you will see how the contents of build path gets included in StreamingAssets when a player is built. You may need to create a custom build processor to include bundles from a different build path.
Addressables simply maps an asset to one location, as specified in the currently loaded catalog. It is not aware of the relationship between local and remote paths. Local bundles are included in your built player. Remote bundles are downloaded separately from the player and are cached on the user’s device.
That being said it is possible to customize where bundles are loaded from at runtime. This is usually is done for loading remote bundles from a different url.
https://docs.unity3d.com/Packages/com.unity.addressables@1.21/manual/runtime/TransformInternalId.html
1 Like