Skip to content
unity-addressables-design logo

Addressables - Design Rules

unity-addressables-design

Source-anchored design rules for Unity Addressables 1.22.3 (Unity 2022) and 2.9.1 (Unity 6). Load before writing any InitializeAsync / LoadAssetAsync / LoadSceneAsync / UpdateCatalogs / AssetReference code to avoid removed APIs, handle leaks, SceneReleaseMode bugs, and catalog update ordering err...

SKILL.md

Full skill instructions

Addressables - Design Rules

Advisory module. Every rule is distilled from Unity Addressables source at two versions:

  • 1.22.3 — [email protected] (Unity 2022, min 2019.4)
  • 2.9.1 — com.unity.addressables@8460f1c9c927 (Unity 6, min 2023.1)

Each rule cites a concrete file/​line so the reasoning is auditable and the AI does not improvise against stale memory.

Mode: Documentation only — no REST skills to gate; load freely under any operating mode (Approval / Auto / Bypass).

When to Load This Module

Load before writing or reviewing any of:

  • Addressables.InitializeAsync() / LoadContentCatalogAsync() bootstrap code
  • LoadAssetAsync<T> / LoadAssetsAsync<T> / InstantiateAsync and their handle release
  • LoadSceneAsync / UnloadSceneAsync — especially with SceneReleaseMode (2.9.1)
  • CheckForCatalogUpdates → UpdateCatalogs → CleanBundleCache patch flow
  • GetDownloadSizeAsync / DownloadDependenciesAsync / ClearDependencyCacheAsync
  • AssetReference / AssetReferenceT<T> field declarations and load/​release
  • Any code that calls WaitForCompletion() or uses AsyncOperationHandle directly
  • Migration from 1.22.3 to 2.9.1 — removed APIs, changed overload signatures

Version Difference Matrix

Area1.22.3 (Unity 2022)2.9.1 (Unity 6)
Non-Async variants (LoadAsset, Instantiate, LoadScene, etc.)[Obsolete] — compile warningRemoved — compile error
IList<object> multi-key overloadsPresentReplaced by IEnumerable
SceneReleaseMode enumDoes not existNew — controls bundle lifetime on scene unload
LoadSceneAsync releaseMode paramAbsentSceneReleaseMode.ReleaseSceneWhenSceneUnloaded default
LoadAssetsAsync<T>(string key, ...)Does not existNew string-key overload
UpdateCatalogs(bool autoCleanBundleCache, ...)Does not existNew overload
LegacyResourcesLocator / LegacyResourcesProviderPresentRemoved
DiagnosticEvent / DiagnosticEventCollectorPresentRemoved
ResourceManagerEventCollectorPresentRemoved
ResourceManager.RegisterDiagnosticCallback()[Obsolete]Removed
InitializationOperation property[Obsolete], returns defaultRemoved
BinaryCatalogInitializationDataDoes not existNew
CachedFileProviderDoes not existNew

Critical Rule Summary

#RuleVersionSource anchor
1All non-Async variants (LoadAsset, Instantiate, LoadScene, UnloadScene, GetDownloadSize, DownloadDependencies, Initialize, LoadContentCatalog) are [Obsolete] in 1.22.3 and removed in 2.9.1. Always use the *Async form.BothAddressables.cs:1.22.3:862-2226, Addressables.cs:2.9.1 (absent)
2Every AsyncOperationHandle returned by a Load/​Instantiate call MUST be released via Addressables.Release(handle). Forgetting leaks the AssetBundle in memory indefinitely — even after the scene unloads.BothAsyncOperationHandle.cs:2.9.1:178-203
3WaitForCompletion() blocks the calling thread synchronously. On WebGL it is unsupported and throws. Never call it on the main thread in production; use await handle.Task or the Completed event instead.BothAsyncOperationHandle.cs:2.9.1:178-203
4LoadSceneAsync in 2.9.1 adds SceneReleaseMode releaseMode (default ReleaseSceneWhenSceneUnloaded). If a Single-mode load unloads your additive scene and you need the bundle to stay alive, pass OnlyReleaseSceneOnHandleRelease and release the handle manually.2.9.1ISceneProvider.cs:2.9.1:14-26, Addressables.cs:2.9.1:1914
5Multi-key overloads changed from IList<object> to IEnumerable in 2.9.1. The old IList<object> overloads no longer exist — pass IEnumerable or string[].2.9.1Addressables.cs:2.9.1:1148,1566,1636
6LegacyResourcesLocator and LegacyResourcesProvider were removed in 2.9.1. Do not reference them in code targeting Unity 6.2.9.1Runtime/​ResourceLocators/ (absent in 2.9.1)
7ResourceManager.RegisterDiagnosticCallback() was [Obsolete] in 1.22.3 and removed in 2.9.1. Use the Addressables Profiler window instead.2.9.1ResourceManager.cs:1.22.3:353 (absent in 2.9.1)
8Catalog update flow is strictly ordered: CheckForCatalogUpdates → UpdateCatalogs. In 2.9.1, UpdateCatalogs(bool autoCleanBundleCache, ...) can auto-clean stale bundles in one call.BothAddressables.cs:2.9.1:2092-2147
9AssetReference.LoadAssetAsync<T>() returns a handle that must be released via assetRef.ReleaseAsset(), NOT Addressables.Release(handle). Mixing the two causes double-release exceptions.BothAssetReference.cs:1.22.3:44-46
10InitializationOperation property (1.22.3) is [Obsolete] and returns default. Do not await it. Use await Addressables.InitializeAsync() instead.1.22.3Addressables.cs:1.22.3:981-982

Sub-doc Routing

Sub-docWhen to read
INIT.mdInitializeAsync / LoadContentCatalogAsync / catalog loading order / autoReleaseHandle semantics
HANDLES.mdAsyncOperationHandle<T> lifecycle — Completed, WaitForCompletion, Release, IsDone, Status, OperationException, ref-counting
LOADING.mdLoadAssetAsync, LoadAssetsAsync (all overloads + version diff), MergeMode, InstantiateAsync, ReleaseInstance
SCENE.mdLoadSceneAsync / UnloadSceneAsync / SceneInstance.ActivateAsync / SceneReleaseMode (2.9.1) / activateOnLoad=false pattern
UPDATE.mdCheckForCatalogUpdates → UpdateCatalogs flow / autoCleanBundleCache (2.9.1) / CleanBundleCache / ResourceLocatorInfo
DOWNLOAD.mdGetDownloadSizeAsync / DownloadDependenciesAsync / ClearDependencyCacheAsync / DownloadStatus struct
ASSETREF.mdAssetReference / AssetReferenceT<T> / LoadAssetAsync / ReleaseAsset / OperationHandle property / IsDone guard
PITFALLS.md30 concrete hallucination pitfalls with version tags + legacy API migration section

Routing to Other Modules

  • Asmdef layout for Addressables consumers → load asmdef
  • Async orchestration across multiple Addressables operations → load async
  • Architecture-level decisions (Addressables vs YooAsset, group strategy) → load architecture
  • Performance review of load/​release hot paths → load performance

Version Scope

This document targets two versions:

  • 1.22.3 — shipped with Unity 2022 LTS. Contains [Obsolete] non-Async variants still present for migration.
  • 2.9.1 — shipped with Unity 6 (2023.1+). All [Obsolete] APIs removed. New SceneReleaseMode, binary catalog format, AutoGroupGenerator.

When a rule applies to only one version it is tagged [1.22.3] or [2.9.1]. Untagged rules apply to both.

Migration Notes (hallucination shield)

Legacy APIStatusReplacementSource
Addressables.Initialize()[Obsolete] in 1.22.3, removed in 2.9.1Addressables.InitializeAsync()Addressables.cs:1.22.3:862-864
Addressables.LoadAsset<T>(key)[Obsolete] in 1.22.3, removed in 2.9.1Addressables.LoadAssetAsync<T>(key)Addressables.cs:1.22.3:992-1007
Addressables.LoadAssets<T>(keys, cb, mode)[Obsolete] in 1.22.3, removed in 2.9.1Addressables.LoadAssetsAsync<T>(keys, cb, mode)Addressables.cs:1.22.3:1242-1276
Addressables.Instantiate(key, ...)[Obsolete] in 1.22.3, removed in 2.9.1Addressables.InstantiateAsync(key, ...)Addressables.cs:1.22.3:1892-1972
Addressables.LoadScene(key, ...)[Obsolete] in 1.22.3, removed in 2.9.1Addressables.LoadSceneAsync(key, ...)Addressables.cs:1.22.3:2090-2106
Addressables.UnloadScene(handle, ...)[Obsolete] in 1.22.3, removed in 2.9.1Addressables.UnloadSceneAsync(handle, ...)Addressables.cs:1.22.3:2180-2226
Addressables.GetDownloadSize(key)[Obsolete] in 1.22.3, removed in 2.9.1Addressables.GetDownloadSizeAsync(key)Addressables.cs:1.22.3:1547
Addressables.DownloadDependencies(key)[Obsolete] in 1.22.3, removed in 2.9.1Addressables.DownloadDependenciesAsync(key)Addressables.cs:1.22.3:1608
Addressables.InitializationOperation[Obsolete] in 1.22.3, removed in 2.9.1await Addressables.InitializeAsync()Addressables.cs:1.22.3:981-982
LoadResourceLocationsAsync(IList<object> keys, ...)Present in 1.22.3, removed in 2.9.1LoadResourceLocationsAsync(IEnumerable keys, ...)Addressables.cs:2.9.1:1148
GetDownloadSizeAsync(IList<object> keys)Present in 1.22.3, removed in 2.9.1GetDownloadSizeAsync(IEnumerable keys)Addressables.cs:2.9.1:1566
DownloadDependenciesAsync(IList<object> keys, mode, ...)Present in 1.22.3, removed in 2.9.1DownloadDependenciesAsync(IEnumerable keys, mode, ...)Addressables.cs:2.9.1:1636
LegacyResourcesLocator / LegacyResourcesProviderPresent in 1.22.3, removed in 2.9.1Use Addressables groups for all assetsRuntime/​ResourceLocators/​LegacyResourcesLocator.cs:1.22.3
ResourceManager.RegisterDiagnosticCallback(...)[Obsolete] in 1.22.3, removed in 2.9.1Addressables Profiler windowResourceManager.cs:1.22.3:353
DiagnosticEvent / DiagnosticEventCollectorPresent in 1.22.3, removed in 2.9.1Addressables Profiler / custom IProfilerEmitterRuntime/​ResourceManager/​Diagnostics/:1.22.3

When in doubt, read the cited source — not your memory.

More skills from gabrielmoreira

workflow-router logo
gabrielmoreira/agent-skills-mirror

workflow-router

研发工作流入口 - 帮助用户快速进入正确的工作流阶段。 触发关键词: 工作流, 流程, 从哪开始, 帮我, 我该怎么做, 下一步, workflow, 不知道用什么, 新手引导, 怎么用

19 0
View
平台架构知识 logo
gabrielmoreira/agent-skills-mirror

平台架构知识

Periodically refreshed mirror of agents, skills, prompts and instruction files from public repositories.

19 0
View
unity-profiler logo
gabrielmoreira/agent-skills-mirror

unity-profiler

Read-only Unity runtime performance snapshots — FPS, frame time, batches/draw calls, triangles/vertices, memory (total/mono/per-asset), object counts, AssetBundle stats. Exact signatures via GET /skills/schema.

19 0
View
ads-audit logo
gabrielmoreira/agent-skills-mirror

ads-audit

Full multi-platform paid advertising audit with parallel subagent delegation. Analyzes Google Ads, Meta Ads, LinkedIn Ads, TikTok Ads, Microsoft Ads, and Apple Ads accounts via 6 parallel audit agents. Amazon Ads, cross-platform attribution, and server-side tracking are covered by their standalon...

19 0
View
unity-skills logo
gabrielmoreira/agent-skills-mirror

unity-skills

Unity Editor automation via REST API — create scripts, analyze scenes, manage assets, control editor, orchestrate workflows, run batch jobs, and route by Unity version. Triggers: Unity, Unity Skills, in Unity, automate Unity, Unity editor automation, create Unity script, scene summary, analyze Un...

19 0
View
purple-cow-audit logo
gabrielmoreira/agent-skills-mirror

purple-cow-audit

Score product remarkability 1-10 to decide if it's worth promoting. Seth Godin's Purple Cow test. Triggers on: "is this product worth promoting", "should I promote", "product audit", "purple cow", "remarkable product", "is it remarkable", "rate this product", "product quality check", "worth my re...

19 0
View
unity-cleaner logo
gabrielmoreira/agent-skills-mirror

unity-cleaner

Project cleanup and audit — find unused assets, content-hash duplicates, missing references, empty folders, large assets, dependency trees; two-step confirm-token delete. Exact signatures via GET /skills/schema.

19 0
View
skill-manager-guide logo
gabrielmoreira/agent-skills-mirror

skill-manager-guide

**GUIDE SKILL** — Guide to the Skill Manager for Copilot extension. USE FOR: adding/removing skill repos, syncing skills, pushing feedback, configuring sync intervals, troubleshooting sync issues, understanding skill format. DO NOT USE FOR: creating new skills (use skill-creator), creating agents...

19 0
View
configure-nightwatch logo
gabrielmoreira/agent-skills-mirror

configure-nightwatch

Configures Laravel Nightwatch data collection, sampling rates, filtering rules, and redaction policies. Use when setting up Nightwatch, managing data volume, protecting sensitive data (PII), or optimizing event collection for production workloads.

19 0
View
research-and-write logo
gabrielmoreira/agent-skills-mirror

research-and-write

End-to-end workflow: research a topic and then write a LinkedIn post about it. Use this skill whenever the user wants the full pipeline — from a topic idea to a finished LinkedIn post. Triggers on: 'research and write a post about', 'create a LinkedIn post about [topic]', 'I want to post about', ...

19 0
View
AI Tutor Persona logo
gabrielmoreira/agent-skills-mirror

AI Tutor Persona

Periodically refreshed mirror of agents, skills, prompts and instruction files from public repositories.

19 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View