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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Add comment