Introduction to building Addressable assets
You can configure Unity to build Addressables assets in the following ways:
One of the benefits of using the Addressables system is that you can create separate builds of Addressables assets (content-only builds) to distribute remotely. In particular, this makes it easier to create updates for your application.
A content-only build processes Addressables groups to create the content catalog, runtime settings, and the AssetBundles that contain your project's assets. Addressables uses these files to load content at runtime.
To build the content as part of the Player build, you can configure this in the Build section of the Addressable Asset Settings.
You can also create builds from scripts. For more information, refer to Start a build from a script.
Defining a build
The Addressables system uses the following to determine how to build the Addressables content in your project:
- Group settings: Determines which category a group belongs to.
- Profiles: Determines the specific paths and URLs that the Addressables system uses to build and load the content.
- Addressable Asset settings: Contain options that affect content-only builds, such as whether to build remote content.
Content-only build types
The content-only build can produce two general categories of content:
- Local content: Content that's included directly in the player build. The Addressables system manages local content automatically when you use the default build path for local content. If you change the local build path, you must copy the artifacts from the local build path to the project's
Assets/StreamingAssets
folder before making a Player build. - Remote content: Content that's downloaded from a URL after your application is installed. You must upload the remote content to a hosting server so that your application can access the designated URL specified by a
RemoteLoadPath
.
For more information about files produced by a content build, refer to Build artifacts.
Start a content-only build
You can start content-only builds from a script or from the Groups window. For information on how to extend building Addressable content, refer to Build scripting.
The Addressables system includes the following build scripts:
- Default Build Script: Performs a full content build based on the groups, profiles, and Addressables system settings in your project.
- Update a Previous Build: Performs a differential content build to update a previously created build.
- Play Mode scripts: The Play Mode scripts are build scripts that control how the Editor accesses your content in Play mode. For more information, refer to Play Mode Scripts.
You can also use the build scripts to clear the cached files they create. You can run these functions from the Build > Clean Build menu of the Groups window.
For more information on how to start an Addressables build, refer to Build Addressable assets.