Skip to content

Instantly share code, notes, and snippets.

@travelhawk
Last active February 4, 2020 15:41
Show Gist options
  • Save travelhawk/daf746578bebcd3487f69d1f210cc35d to your computer and use it in GitHub Desktop.
Save travelhawk/daf746578bebcd3487f69d1f210cc35d to your computer and use it in GitHub Desktop.
Unity Addressables

Unity3D Addressables

Addressables are a new feature by Unity3D to allow the loading of an asset by a simple address no matter whether it is stored locally or remotely. Required assets are loaded at runtime which can reduce build time, installation size and Unity Editor play times. It can also be used to deliver content for deployed games and applications.

However, the setup and the content update after you deployed your game / application can be challenging.

The manual is found here: https://docs.unity3d.com/Packages/com.unity.addressables@0.6/manual/index.html

Build Player with player content

  1. Build Player Content
  2. Build the Player

In /ServerData the player content is generated (catalog and asset bundle). This needs to be uploaded manually to your server. Make sure you set Remote Load Path to the url of your server.

A file named addressables_content_state.bin is created in /Assets/AddressableAssetsData. The file contains the hash of the build player. The player catalog contains this hash to establish a link between player and player content.

Update Player content with existing build

  1. Copy the addressables_content_state.bin to yor latest build folder.
  2. Prepare Content For Update (only if you have static content)
  3. Build For Content Update

Select the addressables_content_state.bin in your build folder. The player content will be overriden and must be uploaded to your server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment