Force a uGUI scrollbar/scrollrect to stay at the bottom when the scrollrect is expanded
Okay so I have a pretty basic setup: I've set up a Scrollrect, with a vertical layout in it, who holds a set of UI text. Basically, this is an in-game debug window, who listens to the log events and add prefabs with everything logged at runtime. Naturally, my list expands until hidden by the mask, which is fine. Problem is, when it does expand, even if the scrollbar was already at the bottom, the new element falls out of view. This forces me to scroll down each time something is posted to the log, which gets pretty annoying when debugging. Is there a way to force the scrollbar to stay at the bottom and show new elements as they're added, without forcing it down to the bottom each time something is added? Basically I don't want to have to scroll down each time something is added, but I don't want to scroll back up because something was added and I was sent to the bottom.
Your answer
Follow this Question
Related Questions
How to prevent scroll rect's content from moving after it reached its borders? 0 Answers
How do i create a character scroll?? 1 Answer
Change the "reference position" of an elastic scroll rect 1 Answer
Error upon rebooting Unity - "Associated script cannot be loaded" How can I resolve this? 2 Answers