Search Issue Tracker

Duplicate

Votes

107

Found in

5.3.0b4

Issue ID

740617

Regression

Yes

Using Content Size Fitter or Vertical Layout Group causes error

UI

-

When using the Content Size Fitter OR the Vertical Layout Group components on the Content of a Scroll View, and playing the scene an error pops up:

Trying to add (Layout Rebuilder for) Content (UnityEngine.RectTransform) for layout rebuild while we are already inside a layout rebuild loop. This is not supported.
UnityEngine.Canvas:SendWillRenderCanvases()

2. How we can reproduce it using the example you attached:
See the attached video.

1. Create a Scroll View add Text GO to its Content
2. Add the Content Size Fitter component on the Content
3. Press play
4. Notice the error. Exit play mode
5. change the attributes of the content fitter: Fit - minimum size
6. play again
7. Notice the content size is now fixed
8. set the attributes of the content fitter: Fit - Unconstrained
9. play again,
10. the content size is still fixed

regression from 5.2.1f1

  1. Response avatar

    This is a duplicate of issue #739376

    Error while resizing console window

Comments (61)

  1. B85b6622c9ddc3348c8a6178529938cf?d=mm

    BrienKing

    Dec 12, 2015 00:34

    Add me to the list getting this error with 5.3

  2. Af8b508cf56120a72fa9bd71a2f97b8f?d=mm

    michael_byrd_pro

    Dec 10, 2015 19:48

    I was also having this issue with a Scroll Rect + Grid Layout Group and dynamically adding buttons. I was able to do a small workout for the time being by adding a Content Size Fitter and setting both to Preferred Size. Not sure how it will work with multiple buttons though.

  3. E1d0a4089faee56553efae2b6779d6b6?d=mm

    dkmadboe

    Dec 10, 2015 08:18

    I can confirm that since updating from 5.2 to 5.3 I am getting the same error: Trying to add (Layout Rebuilder for) Content (UnityEngine.RectTransform) for layout rebuild while we are already inside a layout rebuild loop. This is not supported.
    UnityEngine.Canvas:SendWillRenderCanvases()

  4. A93d654ccd595714dfbea527e72cd157?d=mm

    levykin

    Dec 10, 2015 07:11

    Reproduced in 5.3.0f4

  5. 852720d8df70ba5d0e93cb9d51df3425?d=mm

    ubermacro

    Dec 09, 2015 22:03

    I am also getting this error since updating to 5.3.

  6. B4e7571c1c13d6ca116f2565697dc2dd?d=mm

    Mahdi Jeddi

    Dec 09, 2015 11:00

    It's not just ScrollViews, It happens when you have a ContentFitter inside of a VerticalGroup/HorizontalGroup.

  7. E789cc17539864725b91910dea3ae0df?d=mm

    nonlin

    Dec 09, 2015 08:27

    Really annoying. I had to make some tweaks with my Game Objects since upgrading and I'm not sure if it was cause of this error or not. I'm hoping that that was the most damage this error causes or that it gets solved before my deadline.

  8. Cccdaac6018b3dc3d959600a201ff8b8?d=mm

    nxtboyIII

    Dec 09, 2015 05:36

    Getting this error now.

  9. F7b57f3dc19ccb136d52a9e09bc4c0a4?d=mm

    Jim Groth

    Dec 09, 2015 02:46

    Getting this every time I save since upgrading to 5.3.0f4

  10. C17ae0313816339ddcca2a4696276e4b?d=mm

    CodinRonin

    Dec 08, 2015 17:49

    Same here. This error is appearing a lot since upgrading to 5.3

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.