Search Issue Tracker
By Design
Votes
0
Found in
2017.1.0a5
2018.1.1f1
Issue ID
1042624
Regression
Yes
Original sprites are packaged into the build along with Sprite Atlases even when not included as a dependency anywhere
When using Sprite Atlases the original files are included in the build along with the sprite sheet in all cases, even when there are no references to the sprites in prefabs or the scene.
To reproduce:
1. Download attached project "spriteatlas-repro.zip" and open in Unity
2. Open "SampleScene" scene
3. Build project to any target platform
4. Press Window -> Show Build Report
5. Observe that original sprites are packaged into the build along with Sprite Atlases - sprite sheet along with the 3 icon PNG images
Notes:
- This issue appears on both Windows and OSX
- This issue appears on any target platform
Reproduced on Unity 2017.1.0a5, 2017.1.4f1, 2017.2.3p1, 2017.3.2f1, 2017.4.4f1, 2018.1.2f1, 2018.2.0b6 and 2018.3.0a1
Not reproduced on Unity 5.6.5p4 and 2017.1.0a4
Regression on Unity 2017.1.0a5
Add comment
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
Resolution Note:
Sprite Atlases only manage references to the original sprites and don't keep deep copies of the sprite in the object. If you're building with a Sprite Atlas it needs those sprites packaged with it.