Search Issue Tracker

By Design



Found in







Issue ID




Not all 2D sprites get imported when upgrading a project from 2018.4



How to reproduce:
1. Open the project ""
2. Extract the archive ""
3. Open the extracted texture "FoothillsGround0.png" in the Inspector
4. Observe the number of sprites (7)

Expected result: Texture is still divided into 11 sprites after upgrading the project
Actual result: Some sprites are missing

Reproducible with: 2019.3.0a1, 2019.4.20f1, 2020.2.5f1, 2021.1.0b7, 2021.2.0a4
Not reproducible with: 2018.4.32f1, 2019.2.21f1

You can see the expected and actual result in the attached images

  1. Resolution Note (2021.2.X):

    The issue is caused by extra blank lines being inserted in the meta file of the .png file after physicsShape. As far as we can tell those extra blank lines are not produced by Unity and are not supported by UnityYaml introduced in Unity 2019.3. To fix the sprites with this behaviour you can remove the empty lines in the meta file prior to the upgrade.
    - serializedVersion: 2
    name: 7_FoothillsGround0_BottomRightNeighborsWithoutCorner
    serializedVersion: 2
    x: 112
    y: 32
    width: 16
    height: 16
    alignment: 0
    pivot: {x: 0.5, y: 0.5}
    border: {x: 0, y: 0, z: 0, w: 0}
    outline: []
    physicsShape: []

    tessellationDetail: -1
    bones: []
    spriteID: 43cfaeae629ec475dba1c59c21cd1d78
    vertices: []
    edges: []
    weights: []

Comments (1)

  1. edwardrowe

    Feb 26, 2021 13:48

    Thanks very much for helping track this down. I'm sorry that this was an issue on my end - these spaces are from an importer we wrote over a year ago to generate PhysicsShapes. Looks like we wrote this before 2018.4 introduced

    Again, apologies. I hope it wasn't too hard to track down, as this helped me immensely in finding the bug on my end.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.