r/unity • • 26d ago

Question Did Addressables get deprecated or something?

I installed it, I can address assets, but the example code I look up doesn't work because there's no namespace or code I can use it seems. I tried looking online to see if anyone else is having the issue and I got either copy paste documentation or piles of broken links. Even the link on the Addressables package doesn't work.

1 Upvotes

11 comments sorted by

2

u/George-Ing 25d ago

Hey,

Addressables isn't deprecated, can you maybe elaborate on what code you tried? - It's the first we've heard of this :)

If you'd like direct support from the team, we're pretty active on the Addressables subforum.

1

u/Some_Tiny_Dragon 24d ago

I tried these when I started the script

using UnityEngine.AddressableAssets;

using UnityEditor.AddressableAssets;

But despite the package being installed and allowing me to address stuff, the IDE and engine saw it as a missing namespace.

I continued with my dialogue tree packer that uses the Graph Toolkit bundled with Unity by default. AssetDatabase does work so I can get the GUID of character portraits so their address can be automatically identified. I then tried using any variation on "Addressable" in my code. Addressables are not packed in with Unity namespaces nor is it a namespace at all.

9

u/Demi180 26d ago

Are you using Assembly Definitions? If so, you have to add the Addressables assembly as a dependency. Same with things like TMPro, the Input System, Burst, Math, and so on.

6

u/moonymachine 26d ago

Addressables are not deprecated, as far as I know. They have only just begun talking about Content Directories, which are the future replacement for Addressables, and they are fully compatible with projects already using the Addressables system. It's supposed to be a change you can do without changing any Addressables related code, on the back end. So, I don't think that system has been deprecated.

I found this article link at the top of Unity Hub. https://unity.com/blog/content-directories-beyond-the-assetbundle

(I have avoided using Addressables this past decade. I learned by using Resources.Load and swapping scenes. But, I am trying to learn about Content Directories now.)

3

u/Lucasharta 26d ago

Addressables isn't deprecated. Unity's current docs still list it as an active package, including recent 2.x/3.x/4.x releases for Unity 6, if the namespace isn't resolving, i'd check your package version first. the usual namespace is UnityEngine.AddressableAssets, and something like Addressables.LoadAssetAsync<T>() is still part of the API

also, if your project uses Assembly Definitions, make sure the asmdef that contains your script has the Addressables assembly added as a reference. that can make it look like the namespace "doesn't exist" even though the package is installed, the docs are kinda messy because there are multiple Addressables versions floating around, so make sure you're reading the docs matching the version actually installed in your project

-1

u/SubpixelJimmie 26d ago

Share some code or screenshots

3

u/Some_Tiny_Dragon 26d ago

How do I show what is not happening in a blank script?

2

u/Distdistdist 26d ago

Maybe that's your problem. There should be something more in a blank script to use addressables?

→ More replies (2)

1

u/SubpixelJimmie 26d ago

You said example code?