RapyutaSimulationPlugins
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
URRUserWidget Class Reference

Base user widget, inheriting from UUserWidget More...

#include <RRUserWidget.h>

Inheritance diagram for URRUserWidget:
Inheritance graph
[legend]
Collaboration diagram for URRUserWidget:
Collaboration graph
[legend]

Public Member Functions

virtual bool HasValidContents ()
 
template<typename TChildWidget >
TChildWidget * AddChildWidget (const TCHAR *InChildWidgetNameAffix)
 
void SetActivated (bool bIsActivated)
 
void SetLabelText (const FString &InText)
 

Public Attributes

UPanelWidget * MainPanelWidget = nullptr
 
TObjectPtr< UWidgetComponent > OwnerWidgetComponent = nullptr
 WidgetComponent is a mesh component as surface in the 3D environment on which to render widgets normally rendered to. More...
 
UTextBlock * TextBlock = nullptr
 

Protected Member Functions

virtual TSharedRef< SWidget > RebuildWidget () override
 Invoked as the widget is added to the viewport. More...
 
virtual bool NativeSupportsKeyboardFocus () const override
 
virtual void SetupContents ()
 

Detailed Description

Base user widget, inheriting from UUserWidget

Reference: https://answers.unrealengine.com/questions/470481/create-widget-in-pure-c.html

UCLASS()

Member Function Documentation

◆ AddChildWidget()

template<typename TChildWidget >
TChildWidget* URRUserWidget::AddChildWidget ( const TCHAR *  InChildWidgetNameAffix)
inline

◆ HasValidContents()

virtual bool URRUserWidget::HasValidContents ( )
inlinevirtual

◆ NativeSupportsKeyboardFocus()

virtual bool URRUserWidget::NativeSupportsKeyboardFocus ( ) const
inlineoverrideprotectedvirtual

◆ RebuildWidget()

virtual TSharedRef<SWidget> URRUserWidget::RebuildWidget ( )
overrideprotectedvirtual

Invoked as the widget is added to the viewport.

◆ SetActivated()

void URRUserWidget::SetActivated ( bool  bIsActivated)

◆ SetLabelText()

void URRUserWidget::SetLabelText ( const FString &  InText)

◆ SetupContents()

virtual void URRUserWidget::SetupContents ( )
protectedvirtual

Member Data Documentation

◆ MainPanelWidget

UPanelWidget* URRUserWidget::MainPanelWidget = nullptr

◆ OwnerWidgetComponent

TObjectPtr<UWidgetComponent> URRUserWidget::OwnerWidgetComponent = nullptr

WidgetComponent is a mesh component as surface in the 3D environment on which to render widgets normally rendered to.

the screen. It is first rendered to a render target, then that render target is displayed in the world.

UPROPERTY(EditAnywhere, BlueprintReadWrite)

◆ TextBlock

UTextBlock* URRUserWidget::TextBlock = nullptr

The documentation for this class was generated from the following file: