unity-addressables
БесплатноБез исполняемых скриптовНе проверенUnity Addressables — AssetReference, async loading, labels, groups, build profiles, remote content, Cloud Content Delivery integration, content catalogs and…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
Unity Addressables
Why Addressables (vs Resources / direct refs)
Resources/includes everything in build → forces every asset in memory.- Direct prefab references → load immediately with the scene.
- Addressables: lazy, async, remote-capable, content-update-friendly.
AssetReference
public class EnemySpawner : MonoBehaviour {
[SerializeField] private AssetReferenceGameObject enemyPrefab;
[SerializeField] private Transform spawnPoint;
public async void Spawn() {
AsyncOperationHandle<GameObject> handle =
enemyPrefab.InstantiateAsync(spawnPoint.position, Quaternion.identity);
var enemy = await handle.Task;
// listen for destroy → release
enemy.GetComponent<Enemy>().Killed += () => Addressables.ReleaseInstance(enemy);
}
}
InstantiateAsync reference-counts; release with ReleaseInstance to free memory.
Loading by label
var handle = Addressables.LoadAssetsAsync<AudioClip>("music", null);
var clips = await handle.Task; // all assets with label 'music'
// later
Addressables.Release(handle);
Build profiles
- Development — local groups, fast iteration.
- Release — remote groups (CDN URL), packed bundles.
Set in Window > Asset Management > Addressables > Profiles. CI builds invoke Addressables.BuildPlayerContent() or AddressablesPlayerBuildResult.
Content updates (without rebuilding the player)
- Mark a group as Content Update Restriction = Can Change Post Release.
- Build content → produces
addressables_content_state.bin(commit). - Later,
Build > Update a Previous Build→ produces incremental bundles → upload to CDN. Player downloads the new catalog on launch.
Cloud Content Delivery (Unity Gaming Services)
- Bucket per environment (dev/staging/prod).
- Badge tags ("release-1.2") to pin clients to specific releases.
- Authentication via UGS for entitled content.
Anti-patterns
| Anti-pattern | Fix |
|---|---|
Resources.Load for big asset graphs |
Migrate to Addressables |
Forgetting to Release |
Reference-count leaks → run Profiler memory snapshot regularly |
| Massive single group | Split by usage (per-level, per-language, music vs SFX) |
Sync WaitForCompletion on remote loads |
Always async; show loading UI |
| Different bundle compression per platform forgotten | Default LZ4 for all desktop/mobile; Uncompressed for WebGL on tiny assets |
Production checklist
- No
Resources/folders left in production code paths - Groups split by load pattern
- Labels used for batch loads (music, vfx-rare, boss-only)
- CDN URL profile-driven, not hardcoded
-
addressables_content_state.binchecked into git - CI builds Addressables before player build
- Memory profiler shows expected residency after scene load
Установить unity-addressables в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditFAQ
Что делает скилл unity-addressables?
Unity Addressables — AssetReference, async loading, labels, groups, build profiles, remote content, Cloud Content Delivery integration, content catalogs and updates. USE WHEN: replacing `Resources.Load`, async asset loading, scene streaming, remote content, DLC delivery, runtime asset hot-swap, splitting builds for size. DO NOT USE FOR: editor-time asset queries (use AssetDatabase); legacy Asset Bundles workflows (Addressables wraps them).
Как установить скилл unity-addressables?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unity-addressables запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic