Closed DumoeDss closed 4 years ago
Hi @DumoeDss,
Thanks for report the issue. It seems you want to find all dependencies and add them to the depended group. However I doubt if the it is necessary. Since during the build process, all dependencies will be collected and handled correctly by addressable system. i.e. using the importer or not, you can drag a prefab (with reference to other assets) to addressable group, and all the dependencies will be added to the group. You can use assert bundle browser tool to verify these once you located the local / remote build folder.
Let me know if I understand you correctly.
Hi @favoyang , Thanks for your interpretation. I'm just migrated from asset bundle to addressable, so I'm not too familiar with addressable. I thought I needed to add denpendencies manually such as the asset bundle due to I'm find that the dependenices assets not appear at the asset list, and I'm not sure if I did it right, so I opend this issue. I understand it now, Thanks again for your interpretation.
Glad it helps. I'll close this for now and feel free to re-open it if you find anything surprising you about the dependency handling.
Some dependencies assets is not in the same folder with target asset, so the pack rules will not pack the dependencies assets. I try to add assets' dependencies at OnPostprocessAllAssets, and make the asset's dependencies' group name same to the asset at CreateOrUpdateAddressableAssetEntry. It works meet my expectations. I want to know that is there has any question if I do this change.