Search Unity

Feature Request Add analyze rule for preloaded assets duplicate dependencies

Discussion in 'Addressables' started by Trisibo, Aug 6, 2022.

  1. Trisibo

    Trisibo

    Joined:
    Nov 1, 2010
    Posts:
    245
    There are analyze rules to detect duplicate assets in bundles and resources, or bundles and scenes, but there's another way duplicates can get into builds, through the assets added to "Project Settings -> Player -> Other Settings -> Optimization -> Preloaded Assets" (assets added to a build and loaded automatically when it starts). As far as I see there's no built-in analyze rule to catch those, it would be nice to have it.
     
  2. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    763
    Hey, that's a good callout. I'm not sure exactly when we'd be able to get to this, but if you want to add your own custom rule for the time being you can extend the Analyze system. https://docs.unity3d.com/Packages/c....20/manual/AnalyzeTool.html#extending-analyze

    Alternatively, you can check out this post I made about submitting feature ideas/requests: https://forum.unity.com/threads/addressables-roadmap-and-idea-submission.1317444/

    Definitely sounds like something we should look at. Thanks again!
     
    Trisibo likes this.
  3. Trisibo

    Trisibo

    Joined:
    Nov 1, 2010
    Posts:
    245
    I had no idea about the requests from the roadmap page, would you like me to submit it from there?