Search Issue Tracker
Fixed
Votes
0
Found in
2020.1.0a5
2020.2
Issue ID
1297288
Regression
Yes
Sprite's Order in Layer is ignored when editing a Prefab with a Sprite and a Canvas in Prefab mode
How to reproduce:
1. Open the attached "1297288 repro" project
2. Open the "Test" Prefab from Assets > Scenes folder
3. Select the "New Sprite" GameObject from the Hierarchy window
4. Increase the Order in Layer value of the Sprite Renderer Component to 10 in the Inspector window
Expected results: the Sprite is rendered above the white Image because the Order in Layer is higher
Actual results; the Sprite is rendered below the white Image
Reproducible with: 2020.1.0a5, 2020.2.1f1
Not reproducible with: 2018.4.30f1, 2019.4.16f1, 2020.1.0a4, 2021.1.0a1, 2021.1.0a10, 2021.2.0a1
Notes:
-2 Sprites in the same Prefab interact correctly and respect each other's Order in Layer.
-2 Canvases in the same Prefab interact correctly and respect each other's Order in Layer.
-Sprites are always hidden under the Canvas in the Prefab Mode no matter what the Order in Layer is
Comments (1)
-
LorenzoNuvoletta
Dec 21, 2020 18:26
Will this be fixed also on Unity 2020.2 or 2020.3 LTS?
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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note:
Fixed in 2021.1.0a1