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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment