Let's take a look at the key aspects of Unity's addressable asset system and find out how you can use it to take your projects to the next level.
Using Addressables solves the problem of loading memory-heavy assets from the Unity Resources folder or Asset Bundles. The Unity Addressable Asset System uses asynchronous loading to generate dynamic content from a variety of locations.
Addressables can reduce iteration time and optimize memory usage to make your projects more dynamic. This minimizes the impact on network and system resources by allowing you to download and install only the parts needed by the application.
Addressables are assets that include textures, prefabs, materials, animations and audio clips. These assets are dynamically loaded into your project from either local storage or hosted on a webserver and called.
1
1
Optimize runtime memory - Addressables can improve runtime memory by introducing weak references to prevent unnecessary assets from being loaded.
2
2
Increase building and testing speeds - Addressables decrease load times and streamline your in-app content delivery.
3
3
Profile and analyze your content - Profile and optimize your addressable content delivery using a variety of tools such as the Addressables Event Viewer and Analyze tool.
4
4
Dynamic content loading - Swiftly change assets without rewriting or editing code in your project.
5
5
Cloud content delivery - Combines powerful asset management, asset storage and a reliable content delivery network (CDN) to build and release game updates effortlessly via the cloud.
TOPIC 2 OF 5
Learn how to leverage the Unity Addressable Asset System to enhance your content loading strategy.
When a Unity scene loads, all objects in the scene are also loaded into memory along with their dependencies.
hard referenced assets

The Memory Profiler showing heavy memory usage

As seen here within Memory Profiler, the textures for our assets are already stored in memory even though none of them are instantiated. Typically within a project, there will be assets in memory that are not always needed. In larger projects, this will result in considerable runtime memory pressure.
With the Addressable Asset System, using Asset References as opposed to direct references will prevent these objects from being loaded alongside the scene itself.
If we move our inventory prefabs to an Addressables Group and change InventorySystem to instantiate and release objects using the Addressables API, the assets are loaded at runtime.
The inventory prefabs contained within a Group

The Memory Profiler showing improved optimization

Notice how this has had a considerable impact on memory usage as shown here in the Memory Profiler.
The Addressables Groups window and 'Pack Separately' option

In the Addressables Group window, you can create a new group to house a series of assets that you want to use as Addressables. The next step is to add any assets to the group within the inspector.
These more granular AssetBundles alleviate the problem of large bundles retaining assets in memory that we no longer need.
Here we have used Pack Separately to create an AssetBundle for each asset in the Addressable Group.
TOPIC 3 OF 5
Effective management of Addressable assets and resources will ensure your project releases are smoother and easier than ever. Let’s take a look at how you can use groups, profiles and delivery mechanisms to streamline your games.
Let’s now look in further detail at build scripts. There are three build scripts within the Addressables package that create Play Mode data to accelerate app development.
USE ASSET DATABASE
This script lets you move in and out of Play Mode while you’re working with content; you can run the game quickly as you move through the flow of your game. It loads assets directly through the asset database for quick iteration with no analysis or asset bundle creation.
Simulate Groups
Unity has some great tools to help you simulate how your groups will load at runtime.
This script analyzes content for layout and dependencies without creating asset bundles. You can use this script to tweak your content groups to find the right balance for a production release.
Use existing build
This script is like a deployed application build, but it requires you to build the data as a separate step. If you aren’t modifying assets, this mode is the fastest since it does not process any data when entering Play Mode.
Profiles, groups and labels will allow you to manage and organize your content more effectively. For example, you may wish to load a set of themed assets, or assets relating to a specific game environment or level.