UWidgetComponent::SetWidget

Sets the widget to use directly.

Windows
MacOS
Linux

References

Module

UMG

Header

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

Include

#include "Components/WidgetComponent.h"

Source

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

Syntax

virtual void SetWidget
(
    UUserWidget * Widget
)

Remarks

Sets the widget to use directly. This function will keep track of the widget till the next time it's called with either a newer widget or a nullptr

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