How to remove an Entity from the world? #783
Answered
by
GeezerLMAO
GeezerLMAO
asked this question in
Q&A
-
As the title suggest I want to remove an entity from the world. How do I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
GeezerLMAO
Aug 16, 2022
Replies: 1 comment
-
Never mind I found the answer. You need to call the Example: auto entity = ecs.entity();
entity.destruct(); I thought the removal of the entity is in the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
GeezerLMAO
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Never mind I found the answer. You need to call the
destruct()
function of the entityExample:
auto entity = ecs.entity(); entity.destruct();
I thought the removal of the entity is in the
flecs::world