Search Issue Tracker




Found in


Issue ID




Using Content Size Fitter or Vertical Layout Group causes error



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.

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. This is a duplicate of issue #739376

    Error while resizing console window

Comments (63)

  1. shubhamswaraj2021

    Aug 19, 2020 05:39

    good one <a href="">lyricsauto</a>

  2. cozyurt_unity

    Jul 17, 2020 13:53

    kedi maması köpek maması

  3. 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

  4. lwangwangl

    Apr 08, 2016 05:47

    i still got this err in 5.3.4p1

  5. joaobsneto

    Mar 19, 2016 14:06

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

  6. Beloudest

    Mar 17, 2016 19:37

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

  7. stanchion0

    Mar 15, 2016 22:41

    I don't get this in 5.3.4 anymore

  8. TheFuntastic

    Feb 15, 2016 13:22

    It seems a fix for this issue is in the most recently patch release:

    That means it should be in 5.3.3 as an official release

  9. 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?

  10. 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.

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.