I am trying to understand how to load baked entities from cloud but the documentation is really confusing.
Can someone please explain to me and show me examples on how to do it?
I managed to create the bundle, but I have no Idea how to store them and how to download them.
Can someone help me?
I am not going to give up until someone is willing to help me!
Somebody Help me?
First, we should add ENABLE_CONTENT_DELIVERY to Scripting Define Symbols.
Publish app, then Click Menu Assets->Puslish->Content Update to export your ContentArchives to remoteUrlRoot
In your code, run this code, see this doc Deliver content to an application | Entities | 1.3.5
#if ENABLE_CONTENT_DELIVERY && !UNITY_EDITOR
RuntimeContentSystem.LoadContentCatalog(remoteUrlRoot, Application.persistentDataPath + "/content-cache", initialContentSet);
ContentDeliveryGlobalState.RegisterForContentUpdateCompletion(state =>
{
Debug.Log("state " + state);
if (state >= ContentDeliveryGlobalState.ContentUpdateState.ContentReady)
{
LoadMainScene();
}
});
#else
LoadMainScene();
#endif
What should be the “remoteUrlRoot” and the “initialContentSet”?
and how to test first on local and then on cloud? And which site do you recommend for testing in the cloud?
The remoteUrlRoot is the location where your content data?
I test it use local http server, you can use nodejs(http-server) or pyton to start a local http server.
![]()
You can use Assets/Publish/Content Update to generate ecs content data.
then i copy it to my local build folder (just like this webgl/StreamingAssets/Build-RemoteContent/).
You should start http server at webgl/ folder,then the url is http://127.0.0.1:8080/StreamingAssets/Build-RemoteContent/
The initialContentSet is ‘all’,you can see Create custom content archives | Entities | 1.3.5 for detail information.
var publishFolder = Path.Combine(Path.GetDirectoryName(Application.dataPath), "Builds", $"{buildFolder}-RemoteContent");
RemoteContentCatalogBuildUtility.PublishContent(tmpBuildFolder, publishFolder, f => new string[] { "all" });
You can use yourself initialContentSet like ‘game’, then the initialContentSet is ‘game’.
And can build different subscenes to different content set。
Thank you!
I was able to get the content from the local server
but it throws me an error when trying to load the entity
Could not open file EntityScenes/0a2afe5036c30bd45820a29851f4b440.entityheader for read
I think
you can use very sample project to test ecs content data
which sample project uses ecs streaming content?

