Addressables
Why use Addressables
Reduce initial download size (recommended ~10 MB)
Start the game faster, especially on mobile
Load only what is needed for the first level
Download heavy assets later in background
Step 1: Install Addressables
Open Window → Package Manager
Find Addressables
Click Install

Step 2: Create Addressables group
Open Window → Asset Management → Addressables → Groups
Click New → Packed Assets
Tip: Put related assets in one group (for example, all “Forest level” assets together)

Step 3: Include Assets into Addressable Groups
Click on asset, that you wish to make addressable and check Addressable checkbox on it.


This will add the asset to the default Addressables group and assign it an address (usually based on the file path). You can later modify this address.
Click on group picker and pick your created group.

Step 4: Load assets from script
Now you need to load addressables from the script, instead of loading assets directly.
You can have [SerializeField] or public variable, to place / drag and drop addressables directly into loader.
Example field
And then
Inside OnBackgroundLoaded function, you can use loaded backgrounds.
Later, you can store the loaded Addressables assets in an array or list and use them when the game needs them.
*When loading a game, you don’t need to load all addressables, just check which assets are needed for level, and load by level. After loading all needed addressables, in that case, just after loading needed level assets your game will start
Last updated