Search Issue Tracker
Won't Fix
Fixed in 2017.4.X
Votes
0
Found in
2018.2.0a1
Issue ID
987130
Regression
No
SpriteRenderer does not correctly load sprite packed in bundle created in another project
SpriteRenderer does not correctly load sprite packed in bundle created in another project
Link to original forums post:
https://forum.unity.com/threads/unexpected-behavior-while-using-sprite-atlas-with-asset-bundles.512308/
1. Create new project (projectA)
2. Add a Cat Sprite to the project.
3. Create a SpriteAtlas and add the Cat Sprite.
4. Create a scene that contains a GameObject with a SpriteRenderer.
5. Create a script that given a SpriteAtlas and sprite name it pulls the sprite out of the Atlas and sets it on the SpriteRenderer.
6. Press play, note the cat shows on the screen.
7. Build the bundles.
8. Create another project (projectB)
9. Copy over the bundles from projectA.
10. Create a script in projectB that loads the scene bundle.
11. Press play, note the scene loads but the cat doesnt show.
What I expect to happen is that in step 11. the cat sprite should show.
projectA: https://www.dropbox.com/s/9zihri4293r2jd3/AtlasBundlesTestProjectA.zip?dl=0
projectB: https://www.dropbox.com/s/w72d7tnmazrijgp/AtlasBundlesTestProjectB.zip?dl=0
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