Check if ScrollBar of a ScrollBox is visible

I have some buttons that I want to show/hide depending if the scrollbar of my UScrollBox is visible. I’ve tried binding the visibility of the buttons to UScrollBox->ScrollBarVisbility but its value is always ‘Visible’ even if the scrollbar is indeed hidden. Is there any other way to check if the visibility of the scrollbar?

1 Like

Children, Children of UMG.

Are you sure about above?

I tried, but only got one child which not is sroll bar.

UE4.25

Simply whenever you set it not visible set those not visible aswell… IDK What are you trying exaclty sorry. I hope it helps.

@**reiniii.gg **Pretty sure I’m trying to do the same thing as you. The scrollbox’s GetScrollOffsetOfEnd will be 0 if it can’t be scrolled (which is when the scrollbar would also disappear).

I haven’t found a great event to work with to know when to trigger the check though. Polling it on tick is so far the best I’ve found, for better or worse.

2 Likes