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. 1fdb20ecf2bbeb59cd5824816b910ca9?d=mm

    lwangwangl

    Apr 08, 2016 05:59

    sorry,i replace the lib by rebuild from ugui source code 5.3.2f1´╝îseems like sometimes it occurs,and i use the original 5.3.4p1, not happened then

  2. 1fdb20ecf2bbeb59cd5824816b910ca9?d=mm

    lwangwangl

    Apr 08, 2016 05:47

    i still got this err in 5.3.4p1

  3. Cc66e47862a6d761dae419c61e52b9b8?d=mm

    joaobsneto

    Mar 19, 2016 14:06

    I'm getting this too, it's not duplicated.

  4. 7e82b490cab62182c5c09629299a2f91?d=mm

    Beloudest

    Mar 17, 2016 19:37

    Fixed for me 5.3.4. It's nice to see a clear console! Thanks Unity.

  5. 1b3e88d9f94a9708c628494773003ac3?d=mm

    stanchion0

    Mar 15, 2016 22:41

    I don't get this in 5.3.4 anymore

  6. D46de58f637bd6018bd3c7f845a04088?d=mm

    TheFuntastic

    Feb 15, 2016 13:22

    It seems a fix for this issue is in the most recently patch release: https://unity3d.com/unity/qa/patch-releases/5.3.2p1

    That means it should be in 5.3.3 as an official release

  7. 23043843bebbefbea6e7635254330ad2?d=mm

    psykojello2

    Feb 10, 2016 08:37

    I'm still getting this on 5.3.2. Haven't tried any of the patches though.

    Is there a fix/workaround?

  8. 0d295569fbb2e2c99bb504f5db8e6e09?d=mm

    karljollycompany

    Feb 08, 2016 21:36

    This issue is NOT a duplicate. Please see repro steps.

    I was able to work around this by setting the scrollbar's Visibility to "Permanent" rather than having it appear only when content overflows. Not great.

  9. D46de58f637bd6018bd3c7f845a04088?d=mm

    TheFuntastic

    Feb 04, 2016 09:34

    Error still present after upgrading to 5.3.2

  10. 62909e08a7d9956d030c0833427b70ca?d=mm

    okkal11

    Feb 03, 2016 17:58

    Turning off 'Pixel perfect' on canvas SOLVED the issue for MY project- far from optimal solution tho!

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.