World:clear
Removes all Entities from the World and flushes.
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()Returns
Section titled “Returns”| Name | Type | Description |
|---|---|---|
world |
World |