Search Unity

LightingDataAsset/Scene co-dependence => asset bundle issues

Discussion in 'Asset Bundles' started by Deleted User, Jan 19, 2021.

  1. Deleted User

    Deleted User

    Guest

    Hello,

    I'm setting up an asset bundle build pipeline for the project I'm working on and ran into an issue with scenes that are using shared lighting data (I assume because light maps were generated with multiple scenes loaded and active in the editor).

    It seems that all scenes that share light maps must be placed in the same asset bundle because of the fact that they use a shared LightingDataAsset. This is because scenes and LightingDataAssets are co-dependent (they both reference each other) and therefore must be in the same bundle. This doesn't seem like a fundamental requirement but rather the result of an unfortunate design choice, but I may be wrong.

    It seems to me like it would be enough for the scene to maintain a reference to the LightingDataAsset, which should allow scenes that share light maps to be built to different bundles. In our case, we need each scene to be in a separate bundle (to allow for downloadable content, among other things).

    Would it be possible for someone at Unity to take a look at this?