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
Comments (1)
-
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
- 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
- Errors and warnings are thrown after installing Visual Effect Graph Learning Samples
- Add Behaviour dropdown has a part in which the dropdown outline is cut out when the Add Behaviour dropdown is opened
Resolution Note:
This is fixed in the Scriptable Build Pipeline package, supported in 2018.3 and later versions of unity.