Skip to content
ConcordConcordConcord

World:clear

Removes all Entities from the World and flushes.

← World

Removes all Entities from the World and flushes.

Entities that were queued to be added are detached immediately without onEntityRemoved. Already flushed Entities are removed through the normal flush.

world = world:clear()
Name Type Description
world World