SScrollBox::ScrollDescendantIntoView

Attempt to scroll a widget into view, will safely handle non-descendant widgets

Choose your operating system:

Windows

macOS

Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScrollBox.h

Include

#include "Widgets/Layout/SScrollBox.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Layout/SScrollBox.cpp

Syntax

void ScrollDescendantIntoView
(
    const TSharedPtr< SWidget > & WidgetToFind,
    bool InAnimateScroll,
    EDescendantScrollDestination InDestination,
    float Padding
)

Remarks

Attempt to scroll a widget into view, will safely handle non-descendant widgets

Parameters

Parameter

Description

WidgetToFind

The widget whose geometry we wish to discover.

InAnimateScroll

Whether or not to animate the scroll

InDestination

Where we want the child widget to stop.