SWidgetSwitcher::GetWidget

Gets the widget in the specified slot.

Windows
MacOS
Linux

References

Module

Slate

Header

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

Include

#include "Widgets/Layout/SWidgetSwitcher.h"

Source

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

Syntax

TSharedPtr< SWidget > GetWidget
(
    int32 SlotIndex
) const

Remarks

Gets the widget in the specified slot.

Returns

The widget, or nullptr if the slot does not exist.

Parameters

Parameter

Description

SlotIndex

The slot index of the widget to get.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss