The situation is as follows. In Unity3d 5, using embedded UI components, created with scrollRect and scrollBar region with generated content inside.
In the code, I first look at the number of elements that need to be generated-displayed, then increment Rect.size.y on the ElementsCount * индекс высоты одного элемента . ScrollBar automatic, vertical. Dimensions do fine, but constantly when rebuilding the contents of the ScrollBar set in the center of the content, and you need to display on top of the content.
According to the advice in the open spaces - I changed the binding in the UI, but for some reason I did not notice any changes. Perhaps someone has already encountered this problem and will prompt a rough solution. For now, a crutch to write out of thoughts is to calculate the necessary coordinates for the scrollRect itself and move it, but to score on the ScrollBar , but the way out is not the best for me.
Thanks for any help.
scrollBardirectly affects the position of the region, and you want after each update of the list of objects in thescrollRectsimply reset scrollBar.value to 0. - KingPeas