Search Unity

Feedback Please provide manual mode

Discussion in 'Addressables' started by yu_yang, Oct 17, 2019.

  1. yu_yang

    yu_yang

    Joined:
    May 3, 2015
    Posts:
    85
    If asset A references asset B, A is addressable but B is not, now B will be packed with A automatically.
    Sometimes developers make a mistake, they may pack B repeatedly into different bundles if it is referenced by different assets.
    Hope unity provides a manual mode option, so when I mark an asset addressable unity marks every assets it referenced addressable too, so I can notice them in the addressables window.
     
  2. Favo-Yang

    Favo-Yang

    Joined:
    Apr 4, 2011
    Posts:
    464
    It could be not very consistent, because you may change your prefab / scriptable later. The system provides "analyze" tool helps you discover and fix issue like that.

    e.g. put two prefabs reference same texture into two groups, which leads to two bundles both included the same texture.
    upload_2019-10-17_18-28-11.png

    Run the analyze rules, report the dups for you.
    upload_2019-10-17_18-30-1.png

    "Fix Select Rules", will solve the issue for you by creating a new group for shared assets.
    upload_2019-10-17_18-32-33.png

    Run the analyze again, the issue is gone.
    upload_2019-10-17_18-33-50.png

    Happy packing!
     
    AlexHolderDev likes this.
  3. yu_yang

    yu_yang

    Joined:
    May 3, 2015
    Posts:
    85
    Thanks! It's useful!

    If unity provides a manual mode option would be better, drag one asset to addressables window and multi-assets are added...