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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
Add comment