ecs 1.0 official documentation has error example, Too wrong guidance
sunzwy opened this issue · 0 comments
sunzwy commented
using System;
using Unity.Entities.Content;
using UnityEngine;
public class GameStarter : MonoBehaviour
{
public string remoteUrlRoot;
public string initialContentSet;
void Start()
{
#if ENABLE_CONTENT_DELIVERY
ContentDeliveryGlobalState.Initialize(remoteUrlRoot, Application.persistentDataPath + "/content-cache", initialContentSet, s =>
{
if (s >= ContentDeliveryGlobalState.ContentUpdateState.ContentReady)
LoadMainScene();
});
#else
LoadMainScene();
#endif
}
void LoadMainScene()
{
//content is ready here...
}
}
this is err!!!!!!!!!!!!!!!!!!!!!!,
must be use Load the cataLog
It's unprofessional
and u man do not tell us the ecs Built in EntitySceneBuildPlayerProcessor
to build the relationship between resource and ecs weak id