Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Any way to make Scroll View always go to bottom

Discussion in 'Immediate Mode GUI (IMGUI)' started by Reimirno7, May 31, 2022.

  1. Reimirno7


    Nov 25, 2021
    Used IMGUI for a debug console and basically there is a label inside a scroll view that would be updated every now and then because it receives log output.
    I would like to achieve the following: every time that label is updated, scroll view can automatically go to bottom. Now the scrollbar just stuck at where it was left off last time.
    I can fire an event whenever label receives an update but I do not know how to make scrollbar go to bottom. Setting the scroll position Vector2 to a large downwards vector does not seem to change anything.

    Any advice appreciated.