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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Add comment