I am using Unity3d 5.3.4, when I change my UGUI prefab loading from Resources folder to Assetbundle. I found this issue . My UGUI prefab contains nearly 500 scene nodes , just reference 1 dynamic font and 1 texture atlas . That UI prefab costs 1 second within Resources Load, but in AssetBundle load , it costs nearly 3 seconds. That is tested on some Android devices.
I didn’t mean the bundle file load into memory time, i mean the prefab create from bundle which is already in memory , using the API AssetBundle.LoadAsset() . I profile this API , and found that , the more scene nodes the UGUI prefab contains , it loads significantly slower and slower in Assetbundle.LoadAsset() as GameObject. Not reference more asset like texture or font , just more UGUI sprite node in same atlas . But Resources.Load() is not that slow . Can any one tell me how to solve this , thanks a lot .
Have you tried building the AssetBundle with the BuildAssetBundleOptions.UncompressedAssetBundle flag? It will make the AssetBundle a bit bigger but may speed up the extracting…