Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.2.X, 2022.1.X
Votes
3
Found in
2021.2.0b5
2022.1.0a2
2022.1.0a13
Issue ID
1376779
Regression
Yes
[2D] Reordering "Sorting Layers" list causes Sprites to reference different Layer names and ID
How to repro:
1. Open the attached "case_1376779" project
2. Open the "SampleScene" Scene
3. Select the "Square (1)" GameObject in the Hierarchy window
4. Select "Edit -> Project Settings -> Tags and Layers -> Sorting Layers"
5. Move the "Default" Layer between "New Layer 1" and "New Layer 2"
6. Observe the Console log
Expected result: The Console log outputs "New Layer 1" below "===LayerOfSquare (1)===" message
Actual result: The Console log outputs "New Layer 2" below "===LayerOfSquare (1)===" message
Reproducible with: 2021.2.0b5, 2021.2.2f1, 2022.1.0a2, 2022.1.0a14
Not reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.2.0a1, 2021.2.0b4, 2022.1.0a1
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
- Crash on block_locate_free when rendering a specific scene
- A submenu disappears on MacOS when the MenuItem method argument "isVariableFunction" is set to "false" and priority argument is set to "-1"
- The Sprite Library Editor window has an incorrect order of Sprites when the Sprites are reordered and the order saved
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a1
Resolution Note (fix version 2022.1):
Fix for this issue available on Unity 2022.1.0b5 and above
Resolution Note (fix version 2021.2):
Fix for this issue available on Unity 2021.2.7f1 and above