Search Issue Tracker
By Design
By Design in 5.6.X
Votes
0
Found in
5.6.0f3
Issue ID
948405
Regression
No
Loading AssetBundle assets one by one with LoadAsset() does not find children of prefabs
To reproduce:
1. Open attached Unity project "AssetBundles.zip"
2. in the menu bar, click test --> testload
3. Observe "public static load2" function in Assets --> Scripts --> "test" script (starts at line 20)
4. Observe Console
Expected result: All of the children components should be found by their names with LoadAsset(), like they are found with LoadAllAssets()
Actual result: The children are not found (printed out in console as null)
Note: The bug is reproducible with every FBX I tried. I even added a completely unedited blender model "untitled.fbx" and the result was the same. You can check it out by changing line 22 of "test" function from "var fbxBundlePath = "assets/streamingassets/test.fbx.bundle";" to "var fbxBundlePath = "assets/AssetBundles/untitled";" and then clicking test --> testload (see attached gif "untitled.gif")
Note2: This is not a scripting issue, as with another AssetBundle "test2" made completely out of random separate images changing line 22 of "test" function from "var fbxBundlePath = "assets/streamingassets/test.fbx.bundle";" to "var fbxBundlePath = "assets/AssetBundles/test2";" and then clicking test --> testload every object is loaded without any problems (see attached gif "test2.gif")
Reproduced on: 5.6.3p2, 2017.1.1.f1, 2017.2.0b11, 2017.3.0a7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment