Unity Addressables
AssetBundles
Unity Optimization
Memory Management
LiveOps
Mobile Game Development
Unity 6

Unity Addressables vs. AssetBundles vs. Resources: Architecture & Migration Guide

12 min read
Eshan Naithani

Every Unity project eventually outgrows dragging prefabs directly into scene Inspector fields. When a mobile game hits Android Play Store base module size limits, when a Unity WebGL build takes 25 seconds to download over 4G, or when low-RAM devices crash during scene transitions, how your project packages and loads assets becomes an architectural bottleneck.

Unity provides three runtime dynamic loading mechanisms—the legacy Resources directory, low-level AssetBundles, and the modern Addressables system. While they all load UnityEngine.Object data at runtime, they differ fundamentally in how they resolve dependencies, track memory lifecycles, impact initial startup time, and support remote LiveOps updates.

This guide compares Resources, AssetBundles, and Addressables across memory management, dependency graphs, build size, loading performance, and C# implementation—followed by a practical migration playbook and architecture decision matrix.

Already using Addressables and looking to fix memory leaks or tune bundle packing? Jump directly to our Unity Addressables Optimization: Memory & Loading Guide, or explore our Unity Game Development Services.


1. Architecture Decision Matrix: Direct References vs. Resources vs. AssetBundles vs. Addressables

Use this engineering matrix to compare all four asset delivery models in Unity 6:

Architectural DimensionDirect Scene / Inspector ReferencesAssets/Resources/ (Resources.Load)Raw AssetBundles (AssetBundle API)Unity Addressables (Addressables API)
Underlying Storage FormatPacked into .unity scene (sharedassets) filesMonolithic resources.assets archive inside binaryModular .bundle archive files (Local or Remote)Modular .bundle archives + Content Catalog (.json/.bin)
Initial App Binary Size ImpactHigh (included in initial build if scene is in Build Settings)High (100% of Resources/ is baked into the shipping binary)Low / Configurable (bundles can live on a remote CDN)Low / Configurable (local vs. remote groups switched via Profiles)
App Startup Time OverheadLow (until a heavy scene is loaded)Degrades with scale (global Resources index deserialized at boot)Low (bundles mounted only when requested)Low (lightweight catalog initialized on demand)
Dependency ResolutionAutomatic within sceneAutomatic within Resources.assetsManual (must query AssetBundleManifest.GetAllDependencies and load prerequisite bundles first)Automatic (loads and ref-counts dependent bundles transparently)
Memory Unloading ModelTied to Scene unload (UnloadSceneAsync)Resources.UnloadAsset or full-heap Resources.UnloadUnusedAssets()Manual AssetBundle.Unload(true) or Unload(false) (no built-in ref counting)Deterministic Reference Counting via AsyncOperationHandle<T> & Addressables.Release()
Remote CDN / LiveOps UpdatesNot supportedNot supportedSupported (requires custom hash manifest & download manager)Built-in (CheckForCatalogUpdates, DownloadDependenciesAsync)
Editor Iteration SpeedInstantInstantSlow (must rebuild AssetBundles or write custom #if UNITY_EDITOR AssetDatabase wrappers)Fast (Use Asset Database play mode loads directly without building bundles)
Recommended Use CaseBootstrap scene essentials & tiny core prefabsSmall jam prototypes or minuscule config ScriptableObjectsLegacy pipelines with existing custom CDN managers or standalone UGC/mod loadersDefault choice for commercial mobile, WebGL, PC, and console games

2. Why Resources.Load Scales Poorly in Commercial Games

Placing prefabs inside Assets/Resources/ and calling Resources.Load<GameObject>("Characters/Hero") is tempting during early prototyping because it requires zero setup. In production, however, Resources introduces three severe engineering constraints documented in Unity's official best-practice guidelines:

  1. Startup Time & Unstrippable Lookup Table: Every file inside any Resources folder in your project (including third-party SDK folders) is merged into a serialized red-black tree index loaded at application startup. Because Unity cannot statically prove which strings your code might concatenate and pass to Resources.Load(), no asset inside Resources/ can ever be stripped, and startup initialization time scales with the total number of objects in Resources.
  2. Coarse-Grained Memory Unloading: You cannot call Resources.UnloadAsset() on a GameObject or Prefab—it only works on leaf assets like Texture2D, Mesh, or AudioClip. To free a complex prefab loaded from Resources, you must destroy all scene clones, null out every C# reference, and invoke Resources.UnloadUnusedAssets(), which triggers a synchronous mark-and-sweep scan across every object in the engine and causes noticeable frame hitches.
  3. Zero Over-The-Air (OTA) Delivery: Every megabyte in Resources inflates your initial Google Play .aab, iOS .ipa, or WebGL .data file.

3. Raw AssetBundles vs. Addressables: Under the Hood

A common misconception is that Addressables and AssetBundles are competing file formats. Addressables uses AssetBundles under the hood (compiled via Unity's ScriptableBuildPipeline). The difference is the management layer sitting above the .bundle files.

Code
┌────────────────────────────────────────────────────────────────────────────┐
│                        UNITY ADDRESSABLES ARCHITECTURE                     │
├────────────────────────────────────────────────────────────────────────────┤
│  1. C# Gameplay Code: Addressables.LoadAssetAsync<T>(AssetReference)       │
│                                     │                                      │
│                                     ▼                                      │
│  2. ResourceManager & Content Catalog:                                     │
│     • Translates Address/GUID → Bundle Location (Local Path or Remote URL) │
│     • Resolves Prerequisite Dependency Bundles Automatically               │
│     • Tracks Reference Counts per Asset & per Bundle (AsyncOperationHandle)│
│                                     │                                      │
│                                     ▼                                      │
│  3. Underlying Storage: LZ4 / LZMA AssetBundles (.bundle) + UnityCache     │
└────────────────────────────────────────────────────────────────────────────┘

A. Asset Dependencies: Manual Manifests vs. Automatic Graph Resolution

Suppose HeroPrefab is packed in characters.bundle and references SharedArmor.mat packed in materials.bundle.

  • With Raw AssetBundles: If you call AssetBundle.LoadFromFileAsync("characters.bundle") and instantiate HeroPrefab before manually loading materials.bundle, HeroPrefab spawns with missing (magenta) materials! You are responsible for loading the root AssetBundleManifest, calling manifest.GetAllDependencies("characters.bundle"), loading every dependency bundle in order, and keeping them alive until characters.bundle is no longer needed.
  • With Addressables: When you call Addressables.LoadAssetAsync<GameObject>(heroReference), the ResourceManager looks up HeroPrefab in the Content Catalog, sees that characters.bundle depends on materials.bundle, loads and increments the reference count on materials.bundle first, and only completes the AsyncOperationHandle<GameObject> once the entire dependency chain is ready.

B. Memory Management: The AssetBundle.Unload(boolean) Trap vs. Reference Counting

With raw AssetBundles, unloading memory requires calling bundle.Unload(unloadAllLoadedObjects):

  • bundle.Unload(true): Immediately unloads the bundle header and destroys every texture, mesh, and material loaded from that bundle—even if an active GameObject in your scene is still rendering with them!
  • bundle.Unload(false): Unloads only the compressed bundle header while leaving already-loaded assets in RAM. However, it breaks Unity's internal GUID link between those in-memory assets and the bundle. If you load characters.bundle a second time later in the session, Unity allocates a second duplicate copy of every texture and material in GPU memory.
  • How Addressables Solves This: Addressables tracks an integer reference count on every loaded asset and every mounted AssetBundle. When you release handles via Addressables.Release(handle), the underlying AssetBundle stays mounted as long as RefCount > 0, and calls AssetBundle.Unload(true) automatically the exact moment the bundle's total reference count reaches 0. For edge cases where assets stay in RAM due to co-packed bundles or duplicate implicit dependencies, see our detailed Unity Addressables Optimization Guide.

4. Side-by-Side C# Code Comparison

Compare the C# boilerplate required to load a character prefab with dependencies and clean it up safely across all three APIs:

CSHARP
using System.Collections;
using System.IO;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;

namespace MyGame.AssetComparison
{
    public sealed class AssetLoadingComparison : MonoBehaviour
    {
        // =====================================================================
        // 1. LEGACY RESOURCES API (No dependency bundles, expensive cleanup)
        // =====================================================================
        public IEnumerator LoadViaResourcesCoroutine(string resourcePath)
        {
            ResourceRequest request = Resources.LoadAsync<GameObject>(resourcePath);
            yield return request;

            GameObject prefab = request.asset as GameObject;
            GameObject instance = Instantiate(prefab);

            // Cleanup later requires destroying the instance AND scanning the whole heap:
            Destroy(instance);
            yield return Resources.UnloadUnusedAssets();
        }

        // =====================================================================
        // 2. RAW ASSETBUNDLES API (Manual manifest & dependency loading required)
        // =====================================================================
        public IEnumerator LoadViaRawAssetBundlesCoroutine(
            string rootBundleFolder,
            string targetBundleName,
            string assetName)
        {
            // Step A: Load the master manifest bundle to discover dependencies
            string manifestPath = Path.Combine(rootBundleFolder, "StandaloneAndroid");
            AssetBundleCreateRequest manifestBundleReq = AssetBundle.LoadFromFileAsync(manifestPath);
            yield return manifestBundleReq;

            AssetBundle manifestBundle = manifestBundleReq.assetBundle;
            AssetBundleManifest manifest = manifestBundle.LoadAsset<AssetBundleManifest>("AssetBundleManifest");

            // Step B: Manually load every dependency bundle before the target bundle
            string[] dependencies = manifest.GetAllDependencies(targetBundleName);
            AssetBundle[] loadedDeps = new AssetBundle[dependencies.Length];
            for (int i = 0; i < dependencies.Length; i++)
            {
                string depPath = Path.Combine(rootBundleFolder, dependencies[i]);
                AssetBundleCreateRequest depReq = AssetBundle.LoadFromFileAsync(depPath);
                yield return depReq;
                loadedDeps[i] = depReq.assetBundle;
            }

            // Step C: Load the target bundle and extract the prefab
            string targetPath = Path.Combine(rootBundleFolder, targetBundleName);
            AssetBundleCreateRequest bundleReq = AssetBundle.LoadFromFileAsync(targetPath);
            yield return bundleReq;

            AssetBundle targetBundle = bundleReq.assetBundle;
            AssetBundleRequest assetReq = targetBundle.LoadAssetAsync<GameObject>(assetName);
            yield return assetReq;

            GameObject instance = Instantiate(assetReq.asset as GameObject);

            // Step D: Manual teardown (must track whether any other system uses loadedDeps!)
            Destroy(instance);
            targetBundle.Unload(true);
            for (int i = 0; i < loadedDeps.Length; i++)
            {
                loadedDeps[i].Unload(true);
            }
            manifestBundle.Unload(true);
        }

        // =====================================================================
        // 3. MODERN ADDRESSABLES API (Automatic dependencies & ref counting)
        // =====================================================================
        [SerializeField] private AssetReferenceGameObject characterPrefabRef;
        private AsyncOperationHandle<GameObject> _characterHandle;

        public async Task<GameObject> LoadViaAddressablesAsync()
        {
            // Automatically loads prerequisite dependency bundles and increments ref counts
            _characterHandle = characterPrefabRef.LoadAssetAsync<GameObject>();
            GameObject prefab = await _characterHandle.Task;

            if (_characterHandle.Status == AsyncOperationStatus.Succeeded && prefab != null)
            {
                return Instantiate(prefab);
            }
            return null;
        }

        public void ReleaseAddressableCharacter(GameObject spawnedInstance)
        {
            if (spawnedInstance != null)
            {
                Destroy(spawnedInstance);
            }

            // Decrements ref count; unloads target and dependency bundles only when RefCount == 0
            if (_characterHandle.IsValid())
            {
                Addressables.Release(_characterHandle);
                _characterHandle = default;
            }
        }
    }
}

5. Build Size, Compression & Remote Content Updates (LiveOps)

Both raw AssetBundles and Addressables use the same underlying compression algorithms, but Addressables simplifies switching between local and remote delivery:

  1. LZ4 vs. LZMA Compression:
    • Local Bundles (StreamingAssets): Configure LZ4 chunk-based compression so Unity can seek and decompress only the specific chunks needed for a requested asset without decompressing the entire bundle into memory.
    • Remote Bundles (CDN): Use LZ4 (or LZMA when minimizing raw download bytes over cellular networks, which Unity caches locally as LZ4 after download).
  2. Zero-Code Profile Switching (Local Dev vs. Production CDN): In raw AssetBundles, switching an asset pack from local Application.streamingAssetsPath to an AWS CloudFront CDN requires rewriting your C# loading code from AssetBundle.LoadFromFileAsync to UnityWebRequestAssetBundle.GetAssetBundle. In Addressables, your C# code (Addressables.LoadAssetAsync) never changes—you simply toggle the group's Build & Load Path from <Local> to <Remote> in the Inspector and build an updated catalog.

For a deep walkthrough of over-the-air LiveOps patching, read our 3-part series:


6. Step-by-Step Migration Strategy: Moving to Addressables Safely

If you are maintaining a live project that mixes Resources.Load() or manual AssetBundles, migrate incrementally rather than rewriting the entire project at once:

  1. Phase 1 — Evacuate Heavy Assets from Assets/Resources/: Identify the largest textures, audio tracks, and level prefabs inside Assets/Resources/ using Editor.log after a build. Check the Addressable box in their Inspector—Unity automatically offers to move the asset from Assets/Resources/ into Assets/Resources_moved/ so it is no longer baked into resources.assets.
  2. Phase 2 — Replace String Paths with AssetReference: Where possible, replace fragile string literals ("Enemies/Boss_01") with serialized AssetReferenceGameObject or AssetReferenceT<Sprite> fields so renaming or moving files inside the Project window never breaks runtime paths.
  3. Phase 3 — Isolate Shared Dependencies via the Analyze Tool: Before building bundles, run Window > Asset Management > Addressables > Analyze > Check Duplicate Bundle Dependencies to ensure shared shaders, UI atlases, and materials are placed in a dedicated Shared group rather than duplicated across multiple level bundles.
  4. Phase 4 — Verify Unloading in the Addressables Profiler: Enable Send Profiler Events in AddressableAssetSettings and verify in the Unity Profiler that level bundles return to RefCount = 0 when returning to the main menu. Follow the handle-lifecycle patterns in our Unity Addressables Optimization Guide.

Frequently Asked Questions


Official Documentation References

Need help architecting or optimizing your Unity mobile game? Let's discuss your technical roadmap.

Share this article

Get Practical Unity Development Insights

Technical guides on Unity performance, AI gameplay systems, mobile monetization, and game development.

Unsubscribe at any time. Your data is never shared.

Recommended Reading

More articles in Analytics & LiveOps