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

ResourceManager cache bug #609

Closed
eyworldwide opened this issue Dec 1, 2021 · 0 comments · Fixed by #629
Closed

ResourceManager cache bug #609

eyworldwide opened this issue Dec 1, 2021 · 0 comments · Fixed by #629
Assignees
Labels
bug Something isn't working

Comments

@eyworldwide
Copy link
Member

eyworldwide commented Dec 1, 2021

Describe the bug
After destroying a entity that has a component with resource, such as glTf/lottie/spine,then If you load the the same resource again, the component of the returned entity is undefined. There maybe a cache bug in ResourceManager

To Reproduce
Steps to reproduce the behavior:

  1. Load a resource with resourceManager and return a entity.
  2. Destroy the entity with destroy() method.
  3. Repeat the same resource like step 1.
  4. undefined error happens.

Expected behavior
Engine will handle the problem internally.

@eyworldwide eyworldwide added the bug Something isn't working label Dec 1, 2021
@GuoLei1990 GuoLei1990 linked a pull request Jan 28, 2022 that will close this issue
3 tasks
@GuoLei1990 GuoLei1990 removed a link to a pull request Jan 28, 2022
3 tasks
@GuoLei1990 GuoLei1990 linked a pull request Jan 28, 2022 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants