Search Issue Tracker
Won't Fix
Votes
3
Found in
2017.4
2017.4.23f1
2018.4
2019.1
2019.2
2019.3
Issue ID
1170639
Regression
No
[AssetBundles] Sprite asset is built into the wrong AssetBundle
Reproduction steps:
1. Open "texturetest.zip" project
2. "Build" -> "AssetBundle"
3. Open the "...\*project folder*\build" folder
4. Use "WebExtract.exe" and "binary2text.exe" to extract the "prefab" file
5. Open the file in a text editor
6. Notice that "Sadcat.png" is present in the prefab bundle ("m_Name "sadcat" (string)")
Expected Result: "Sadcat.png" is not included in the Prefab AB, only in the Texture AB
Actual Result: "Sadcat.png" is included in the Prefab AB
Reproduced with: 2019.3.0a11, 2019.2.0b10, 2019.1.12f1, 2018.4.5f1, 2017.4.30f1
-
unity_-xVksTSNs-py8g
Nov 28, 2019 12:01
If you toggle 'sprite' texture back to 'default' all works as fine. set it back to 'sprite' again and it will be included with the material. Solution for now is to pack materials in same AB as your sprites.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note:
This is fixed in the Scriptable Build Pipeline package, supported in 2018.3 and later versions of unity.