Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ECS] Components not getting destroyed #357

Closed
amir-halloul opened this issue Jun 7, 2020 · 1 comment
Closed

[ECS] Components not getting destroyed #357

amir-halloul opened this issue Jun 7, 2020 · 1 comment

Comments

@amir-halloul
Copy link
Contributor

amir-halloul commented Jun 7, 2020

component.DestroyComponents<T>() and component.Destroy() don't seem to call OnDestroyComponent() or setting IsComponentAlive to false. Example:

TestComponent test = player.AddComponent<TestComponent>();
player.DestroyComponents<TestComponent>();
player.SendClientMessage("IsComponentAlive: " + test.IsComponentAlive); // output: IsComponentAlive: true
test.Destroy();
player.SendClientMessage("IsComponentAlive: " + test.IsComponentAlive); // output: IsComponentAlive: true
@ikkentim
Copy link
Owner

ikkentim commented Jun 8, 2020

Duplicate of #334, will leave this one open till the PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants