Skip to content

How to remove an Entity from the world? #783

Answered by GeezerLMAO
GeezerLMAO asked this question in Q&A
Discussion options

You must be logged in to vote

Never mind I found the answer. You need to call the destruct() function of the entity

Example:

auto entity = ecs.entity();
entity.destruct();

I thought the removal of the entity is in the flecs::world

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GeezerLMAO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant