Hi all,
I am trying to set up some asset bundles using the new system and am running into an issue with prefabs. It appears that if I bundle a prefab in one asset bundle but bundle the material it uses into a separate asset bundle with variant (so I can download a different one at runtime), the prefab loses the connection to the material.
1) This scenario works:
1. common.mat + common.png in asset bundle "quadasset"
2. myQuad.prefab in asset bundle named "quad", uses common.mat
2) This scenario does not work (quad loads but material :
1. A/ab.mat + A/ab.png in asset bundle variant "abasset.aaa"
2. B/ab.mat + B/ab.png in asset bundle variant "abasset.bbb"
3. myABQuad.prefab in asset bundle named "abquad", uses A/ab.mat by default
Is there an issue with prefabs and references across asset bundles or am I missing something? I have verified that I can manually load the material from the asset bundle and assign it to a quad in my scene, but when I load the prefab it doesn't resolve the reference to the material (even if I load the variant that it was referencing to begin with).
Thanks.
Stephane
↧