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

Asset Auditor Window won't show anything #15

Open
Ennaxor opened this issue Dec 29, 2020 · 1 comment
Open

Asset Auditor Window won't show anything #15

Ennaxor opened this issue Dec 29, 2020 · 1 comment

Comments

@Ennaxor
Copy link

Ennaxor commented Dec 29, 2020

Hi there!

I've been testing the asset auditing tool these days and I've encountered some problems that I don't know how to solve. After creating a profile with its own filters and so on, I understood that if I imported assets into the folder that contains this profile, the assets would show later in the Asset Auditor window, but they don't. The window is simply empty whatever I do without any errors showing up.

I've tried debugging the AssetsTreeView script to see what is happening, and it seems that it never adds new associatedAssets to any profile. What am I missing exactly? I'm sure I'm missing a step that I didn't really understand. Like setting up the .userData file as you say it's required, but how really?
if( Filter.Conforms( assetPath, profile.GetFilters() ) ) associatedAssets.Add( assetPath );

a2
a3

Thanks!

@AndyMUnity
Copy link
Collaborator

Hi Ennaxor,

What am I missing exactly?

I am not sure what it is that is causing this. I attempted to recreate your setup and it displayed what I expected. One thing to note, is that the filesize is in bytes, so a 10k png is quite small. If you are expecting this at a different scale, then that could be the cause.

Because with a large project filtering all the Assets in the project is slow. If you make changes to the project files or the filters. You also need to manually refresh the auditing window (button on top right), if you have not done that also?

I'm sure I'm missing a step that I didn't really understand. Like setting up the .userData file as you say it's required, but how really?

This is not required for this purpose.
The .userData is a value that you can set to an asset importer. The reason why this tool uses this is in order to use it with the cache server. Setting the .userData allows it to assign changes to the meta data file, in order to change the precomputed hash AssetDatabase.GetAssetDependencyHash explains what this is calculated from. This is automatic set when processing. But no processing would have happened if the filters do not find it.

If that does not help you could send me an example and I can debug it to find the cause?

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