Example ContentDirectory

We have established a public git repo with some small Unity projects, demonstrating the new content directory feature.

I hope you find these helpful! Please let us know ideas of other focused examples we could write, or any issues you observe with what we have published so far.

6 Likes

Is the feature where for WebGL content directories only download what’s needed a 6.7 feature or a future 7.0 feature?

Hi AndrewSkow, I don’t know of an official answer on this, so I’d treat it as unconfirmed for now.

I had a look at the Unity 6.7 (alpha) docs for content directories. They describe the feature as being for local content only, to reduce build size and to ship DLC or updates alongside the Player build. They say that for remote distribution or downloading content after install, you should use AssetBundles or your own system. That suggests the “download only what’s needed” behaviour for Web isn’t part of 6.7, but the docs don’t say so directly, and they’re still marked alpha.

Could someone from the Unity team confirm whether this is planned for 6.7, for 7.0, or for later? It would help a lot of us decide whether to wait for it or stick with AssetBundles/Addressables for Web builds in the meantime.

Thanks!

Sorry for the delay.

For 6.6 and 6.7 the loading system only works for content that is already locally available prior to loading, including all dependency content (e.g. serialized files and resource files referenced by the file that is being loaded).

For web platform that would mean that the supported content directory case would be to fully download the content, prior to registering it. The example here shows a method for preloading everything. So “download only what’s needed” is not currently available and we would recommend to stick with AssetBundles and Addressables.

There may be potential if you want to get into more “do it yourself” solutions, e.g. potentially splitting things into multiple content directories and then pulling them down locally more “as needed”.

We are actively working on distribution support that will offer a performant alternative for using AssetBundles to download content on demand.

It was told that Remote would be supported in 6.7, was it moved to 7.0?

Hi Neonage, it has never been a plan to have “remote” content directory support in 6.7, perhaps some misunderstanding. We started by focusing on local support so that we could provide a full functionality that works well for the specific local case, before moving to building the distribution components. Many Unity users ship their content directly along with the player, including a high percentage of Addressables users, so the 6.7 functionality can be useful for that case. But distribution case is also very important for many users, so I can assure you it is getting a lot of attention.

Sorry I misremembered :sweat_smile:

1 Like