Search Issue Tracker

Fixed in 2022.1.X

Votes

0

Found in

2018.4

2019.4

2020.3

2020.3.0f1

2021.1

2021.2

Issue ID

1322784

Regression

No

A child Canvas with Override Sorting is not rendered when opening a project if the parent Canvas is disabled

uGUI

-

How to reproduce:
1. Open the attached project
2. Observe the Game view

Expected result: A red box is visible
Actual result: Red box is not visible

Reproducible with: 2018.4.32f1, 2019.4.23f1, 2020.3.2f1, 2021.1.0f1, 2021.2.0a10

Workaround: Enable/disable the Canvas of the parent Game Object for the box to appear

Note:
1. Clicking Play or reloading the Scene will make the child Canvas disappear again

  1. Response avatar

    Resolution Note (fix version 2022.1):

    Force update the Canvas RectTransform on load from disk. When a Canvas is nested its world matrix is still based upon the parent Canvas. If this parent Canvas is disabled AND is Screen Space the RectTransform is serialized as 0. This causes items to not render due to a invalid AABB.
    Fixed in: 2022.1.0a6

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.