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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
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.