Search Issue Tracker

Fixed in 2020.2

Fixed in 2019.4, 2020.1

Votes

2

Found in

5.4.0p3

Issue ID

833456

Regression

No

Canvas.ForceUpdateCanvases() doesn't update canvas before Camera.Render() is called

uGUI

-

Steps to reproduce:

1. Open attached project
2. Open scene "Scene"
3. In project tab click on "New Render Texture" and make sure that preview is enabled
4. Click on game view to make sure that it accepts keyboard keys
5. Press "2" and this will resize texture, call Canvas.ForceUpdateCanvases() and then Camera.Render()
6. Notice that render texture doesn't resize button
7. In scene view notice that canvas are resized

Additional steps:
8. Press "1" and notice that button isn't in the corner of render texture
9. In scene view notice that it should be in the corner

Reproduced with: 5.2.5f1, 5.3.6p6, 5.4.1p2, 5.5.0b5

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Canvas RectTransform size calculation now done for standalone renders as well. Partial fix: requires camera to be enabled during Camera.Render() call

Comments (2)

  1. 2614a132ebe47f793f90adc31db9197f?d=mm

    Menion-Leah

    Feb 21, 2019 17:14

    Same issue here (2018.3.2f1).

    Seems quite weird that no explanation is provided when a case is closed as "Won't fix"

  2. A4c8752d73e9d87580a1a0699b27c100?d=mm

    illa3d

    Jan 20, 2017 13:28

    Experiencing the same issue. Unity 5.5.0p3.
    Has anyone found a workaround?

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.