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

Dependencies should be not collected recursively #11

Closed
ogxd opened this issue Jul 8, 2022 · 0 comments · Fixed by #12
Closed

Dependencies should be not collected recursively #11

ogxd opened this issue Jul 8, 2022 · 0 comments · Fixed by #12

Comments

@ogxd
Copy link
Owner

ogxd commented Jul 8, 2022

As of today (and maybe since an update?), AssetDatabase.GetDependencies(string assetPath) collects depencies recursively.
This is an issue because:

  • Refreshing referencers does not work properly on asset update
  • It takes more time to build the database for no reason
  • It uses more memory

Todo

Make use of AssetDatabase.GetDependencies(assetPath, recursive: false)

ogxd added a commit that referenced this issue Jul 8, 2022
Fix dependencies should be collected recursively
@ogxd ogxd changed the title Dependencies should be collected recursively Dependencies should be not collected recursively Jul 8, 2022
@ogxd ogxd linked a pull request Jul 8, 2022 that will close this issue
@ogxd ogxd closed this as completed Jul 8, 2022
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

Successfully merging a pull request may close this issue.

1 participant