World
The World, the place where all Entities live.
Lifecycle
var world = World.Create(); // Creating a world full of life
world.TrimExcess(); // Frees unused memory
world.Dispose(); // Clearing the world like God in the First Testament
World.Destroy(world); // DoomsdayCustomize
var customizedWorld = World.Create(
chunkSizeInBytes: 16_382, // The base size of each chunk
minimumAmountOfEntitiesPerChunk: 100, // The base amount of entities per chunk
archetypeCapacity: 8, // The initial size of the archetype array
entityCapacity: 64 // The initial amount of entities
);Good to know
Last updated