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

Addressables references #8

Open
Wnntyl opened this issue Nov 23, 2021 · 2 comments
Open

Addressables references #8

Wnntyl opened this issue Nov 23, 2021 · 2 comments

Comments

@Wnntyl
Copy link

Wnntyl commented Nov 23, 2021

I suggest adding support for finding dependencies by AssetReferences too

@AlexeyPerov
Copy link
Owner

AlexeyPerov commented Feb 20, 2022

Concerning Addressables: for now, you can filter them in the search results
AssetReferences support is currently WIP

@CampioniMan
Copy link
Contributor

Hello, I just found this package and it is amazing!

I'm wondering if the Addressable search support will be added for Package Manager users as it is described in the README file. I tried it just now and it appears to have failed since the asmdef file has no reference to the Addressable asmdef, which is fair since Addressables aren't a dependency for this package by default.
To fix this problem for any Package Manager user I think you can just add an Assembly Definition Reference by name to the Addressables asmdef, then add this reference in the project's main Assembly Definition, this way if you add Addressables to a project that has this package as a dependency it will get the reference by the name and if you don't add Addressables it will just be a missing reference and Unity will ignore it. I didn't try it, so it might not work like that.

For now I can use it without the Package manager, but I won't get the newest updates automatically... :(

As a tip:
I noticed I have to uncomment a line to define a macro to enable the Addressable search code, but I used Package Manager to import the package so I can't change any scripts inside that package as it won't be saved.
Solution: Add the macro definition for HUNT_ADDRESSABLES inside Unity's Player Settings (Other Settings->Scripting Define Symbols). This solution sounds even better than the default one because nobody has to touch any script files, which is more inclusive for non-programmers (game designers, artists, ...).

Anyway, have a great day!

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

3 participants