AssetBundle (36662)

Hello,

Platform: iOS

Why if I use BuildPipeline.BuildStreamedSceneAssetBundle() function to load my scenes I have a crazy delay whe I try to load any lvl from this asset bundle? (vie LoadAsync, LoadAdditive, Load - all the same). What the reason, how can I fix it? Thnx.

Are you got main delay when make Instantiate(www.assetBundle.mainAsset) ? If so you can get level in www.assetBundle.mainAsset as GameObject before Instantiate it and try instantiate it part by part, look:

  1. After www.isDone you have GO1->GO2->GO3 inheritance, one object in other in www.assetBundle.mainAsset

  2. You get object GO3, save its global position/rotation and parent, and instantiate it as GO3New

  3. Set GO3New position/rotation from 2)

  4. do the same with GO2 and set it as new parent for GO3New

  5. Go step by step trough all object tree to its root

This is much longer way to build scene, but you have all delays manageable on your own. I was try to make this some time before, not end this work, but it seems that this approach will work nice.