Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Slate
Inheritance Hierarchy
- SCompoundWidget
- FSlateInvalidationRoot
- SRetainerWidget
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Slate/SRetainerWidget.h |
Include | #include "Slate/SRetainerWidget.h" |
Syntax
class SRetainerWidget :
public SCompoundWidget,
public FSlateInvalidationRoot
Remarks
The SRetainerWidget renders children widgets to a render target first before later rendering that render target to the screen. This allows both frequency and phase to be controlled so that the UI can actually render less often than the frequency of the main game render. It also has the side benefit of allow materials to be applied to the render target after drawing the widgets to apply a simple post process.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Construct
(
const FArguments& Args |
Constructor |
![]() ![]() |
UMaterialInstanceDynamic * | ||
![]() ![]() |
bool | ||
![]() |
void | ||
![]() |
EPaintRetainedContentResult | PaintRetainedContentImpl
(
const FSlateInvalidationContext& Context, |
|
![]() |
void | ||
![]() |
void | Requests that the retainer redraw the hosted content next time it's painted. | |
![]() |
void | SetContent
(
const TSharedRef< SWidget >& InContent |
|
![]() |
void | SetEffectMaterial
(
UMaterialInterface* EffectMaterial |
|
![]() |
void | SetIsDesignTime
(
bool bInIsDesignTime |
|
![]() |
void | SetRenderingPhase
(
int32 Phase, |
|
![]() |
void | SetRetainedRendering
(
bool bRetainRendering |
|
![]() |
void | SetShowEffectsInDesigner
(
bool bInShowEffectsInDesigner |
|
![]() |
void | SetTextureParameter
(
FName TextureParameter |
|
![]() |
void | ||
![]() ![]() |
bool |
Overridden from SWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
const FSlateInvalidationRoot * | ||
![]() ![]() ![]() |
bool | ||
![]() ![]() ![]() |
FVector2D | ComputeDesiredSize
(
float LayoutScaleMultiplier |
Compute the ideal size necessary to display this widget. |
![]() ![]() |
bool | CustomPrepass
(
float LayoutScaleMultiplier |
|
![]() ![]() |
FChildren * | Returns all Widgets, including widget hidden from the invalidation system. | |
![]() ![]() |
FChildren * | GetChildren () |
Returns the useful children (if any) of this widget. |
![]() ![]() ![]() |
int32 | OnPaint
(
const FPaintArgs& Args, |
SCompoundWidget interface |
Overridden from FSlateInvalidationRoot
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
TSharedRef< SWidget > | ||
![]() ![]() |
void | ||
![]() ![]() |
int32 | PaintSlowPath
(
const FSlateInvalidationContext& Context |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FArguments |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
EPaintRetainedContentResult |