UI Element is sorted behind the parent Canvas when the UI Element is created in Prefab Mode and has a Canvas component attached
Unity: uGUI Framework
Fixed
2023.1.X
2022.2.X
2021.3.X
Won't Fix
2022.1.X
2021.2.X
2021.1.X
Fixed applied in UUM-6133 addressed this bug as well.
Fixed the prefab mode sorting when a canvas component is being added to an UI component.
Backport provided for 2022.2.
Fixed the prefab mode sorting when a canvas component is being added to an UI component.
Backport provided for 2021.3.
Closing since this version is not supported anymore, and there is another port to track 2021.3 which is the supported version
How to reproduce:
1. Open the user-submitted project
2. In the project window, open the Prefab "Canvas" (Assets/Canvas.prefab)
3. In the Hierarchy window, right-click the GameObject "Button" and select "Duplicate"
4. In the Prefab Mode Scene view, observe the duplicated GameObject
Expected result: The duplicated GameObject is visible
Actual result: The duplicated GameObject is not visible