UScrollBar::SetState

Set the offset and size of the track's thumb.

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Components/ScrollBar.h

Include

#include "Components/ScrollBar.h"

Source

/Engine/Source/Runtime/UMG/Private/Components/ScrollBar.cpp

Syntax

void SetState
(
    float InOffsetFraction,
    float InThumbSizeFraction
)

Remarks

Set the offset and size of the track's thumb. Note that the maximum offset is 1.0-ThumbSizeFraction. If the user can view 1/3 of the items in a single page, the maximum offset will be ~0.667f

Parameters

Parameter

Description

InOffsetFraction

Offset of the thumbnail from the top as a fraction of the total available scroll space.

InThumbSizeFraction

Size of thumbnail as a fraction of the total available scroll space.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback