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
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
Comments (63)
-
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
-
lwangwangl
Apr 08, 2016 05:47
i still got this err in 5.3.4p1
-
joaobsneto
Mar 19, 2016 14:06
I'm getting this too, it's not duplicated.
-
Beloudest
Mar 17, 2016 19:37
Fixed for me 5.3.4. It's nice to see a clear console! Thanks Unity.
-
stanchion0
Mar 15, 2016 22:41
I don't get this in 5.3.4 anymore
-
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
-
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?
-
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.
-
TheFuntastic
Feb 04, 2016 09:34
Error still present after upgrading to 5.3.2
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
This is a duplicate of issue #739376