Canvas Scaler settings conflict with Dynamic ScrollRect creations?

Hi all. Not sure, but I think I found a bug with the new 4.6 UI. The item/element buttons render zoomed/oversized and overlaid when trying to create a dynamic scroll-rect of buttons on a canvas that has the Canvas’s “Canvas Scaler” component script with a UI Scale Mode of Scale with Screen size and a Reference Resolution of 1366x768. If I change the UI Scale Mode to its default of “Scale with Screen Size”, everything displays correctly.

I have setup the simple scrollrect using standard buttons. I have followed the steps shown on the live training titled “UI Tools: Scrolling Menus at Runtimehttp://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/creating-scroll-lists-at-run-time.

I’m taking a guess that the content size, vertical layout, and Layout element components haven’t been verified to work when modifying the Canvas’s Scale settings. Please let me know if you can verify/confirm this bug, if I need to report it (and how). For now, I’ve just left the Canvas Scale settings in their default mode, but that defeats the purpose of the feature.

Thanks all.

I noticed when I was adding elements dynamically the scale somehow was getting changed to something higher then 1,1,1 so I just set the rect transform to rectTransform.localScale = new Vector3(1,1,1,); for the item you are adding dynamically.

1 Like