Unity-Technologies / ProjectAuditor

Project Auditor is an experimental static analysis tool for Unity Projects.
Other
789 stars 65 forks source link

[Feature Request] Add option to analyze assets that go into build. #208

Open LVNov opened 1 year ago

LVNov commented 1 year ago

Problem: The tool is great, but does not allow you to revise the resources that will be packed into build, it analyzes assets of the entire project. It would be great to have an option to set a desired platform and have this relevant information, it would help immensely to figure out, localize and optimize the problems.

Solution: Have an option to select a platform and specify that you want to only see the assets that go into the according build. Analyze assets dependencies, including bundles (addressables), and display information about it. Analyzing stripped code would be great too, but not as important as, for example, being able to see which textures will be used in build.

mtrive commented 10 months ago

Hi @LVNov, Thanks for the suggestion.

if I understand correctly you would like the Asset Diagnostics view to only report problems related to assets that made it into the build (and asset bundles) for a specific platform, rather than all asset problems in the project.

If that's the case, I think one solution would be to create a filter for Asset Diagnostics to hide assets that were not built. Would something like this make sense?

LVNov commented 10 months ago

Hello @mtrive

That's exactly it! It would make perfect sense. Would be an awesome addition to the functionality.