How WorldFlags.Streaming-World works

As I understand it, they are created automatically when loading resources or something similar, because nowhere in my code do I create worlds whose names contain LoadingWorld. The question is, can I delete them after the download is complete, or do I need them later for something else?

public static void WorldsClear(WorldFlags flag = WorldFlags.Streaming)
{
	Chat.Clear();
	bool needMore = true;
	while (needMore)
	{
		needMore = false;
		if (World.All.Count > 0)
		{
			for (int i = 0; i < World.All.Count; i++)
			{
				var world = World.All[i];
				if (world.Flags == flag)
				{
					Chat.Msg($"[Disposing] " +
						$"Name:{world.Name} " +
						$"Flags:{world.Flags}");

					world.Dispose();
					needMore = true;
					break;
				}
			}
		}
	}
}

You’ll need them when you want to change levels, reload the game, etc. Don’t delete them. It won’t make your game run faster or get you any closer towards finishing your project.

1 Like