public void PrepareForDeserialize()
{
if (Debug.EntityCount != 0)
{
using (var allEntities = GetAllEntities())
{
throw new System.ArgumentException($"PrepareForDeserialize requires the world to be completely empty, but there are {allEntities.Length}.\nFor example: {Debug.GetEntityInfo(allEntities[0])}");
}
}
GetCheckedEntityDataAccess()->ManagedComponentStore.PrepareForDeserialize();
}