Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2019.4.29f1
2020.3
2021.1
2021.2
2022.1
Issue ID
1356035
Regression
No
Tilemaps ignores Order of Layers until you enter to Play
To reproduce:
1. Download the attached "TileLayerBug.zip" project and open in Unity
2. Open "Unity_Office_4th_Floor2" scene
3. Select "Floor" gameObject and observe that its Order in Layer is 0
4. Duplicate "Floor" gameObject and paint some Tiles on it
5. Observe that those Tiles are shown in Scene and Game windows
6. Enter Play mode
7. Observe that tiles that were painted on a duplicate of the "Floor" gameObject vanished
Expected results: Unity Editor should respect Order in Layers in Edit mode
Actual result: Unity Editor ignores Order in Layers until you enter Play Mode
Notes:
- This issue should appear on both Windows and macOS
- This might be not a Package bug but a Unity Editor bug
Reproduced on Unity 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0b7 and 2022.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
- Freeze/crash with multiple StackTraces when opening a specific project
- Crash on TypeContainer<int>::rtti when deleting a Render Texture that is used by the Main Camera
- Multiple ArgumentExceptions are thrown when adding a VisualTreeAsset with Sprite Glyphs to a UIDocument
- Color Node Alpha slider displays incorrect value when viewed in Shader Graph
- Player unresponsive when building a specific project with Autoconnect Profiler enabled
Resolution Note:
In this case the editor is respecting Order in Layers. Tilemaps with the same sorting layers and order in layer will be sorted by a tiebreaker in the system depending on the render queue which may not be the same in Edit and Play mode
The rules for sorting for 2D Renderers can be found here: https://docs.unity3d.com/Manual/2DSorting.html