ECS:despawn
Unregisters an Entity from this ECS. See Entity:despawn for more details.
Usage
ecs:despawn(entity)
Arguments
| Name | Type | Description |
|---|---|---|
entity | Entity | The entity to depsawn. |
Examples
local ecs = crystal.ECS:new();
local entity = ecs:spawn(crystal.Entity);
ecs:despawn(entity);