Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Components/RetainerBox.h |
Include |
#include "Components/RetainerBox.h" |
class URetainerBox : public UContentWidget
The Retainer Box 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.
Single Child Caching / Performance
Name | Description | ||
---|---|---|---|
|
bRetainRender |
||
|
TObjectPtr< UMa... |
EffectMaterial |
The effect to optionally apply to the render target. |
|
TSharedPtr< cla... |
MyRetainerWidget |
|
|
Phase |
The Phase this widget will draw on. |
|
|
PhaseCount |
The PhaseCount controls how many phases are possible know what to modulus the current frame count by to determine if this is the current frame to draw the widget on. |
|
|
RenderOnInvalidation |
Should this widget redraw the contents it has every time it receives an invalidation request from it's children, similar to the invalidation panel. |
|
|
RenderOnPhase |
Should this widget redraw the contents it has every time the phase occurs. |
|
|
TextureParameter |
The texture sampler parameter of the , that we'll set to the render target. |
Name | Description | |
---|---|---|
|
URetainerBox ( |
Name | Description | ||
---|---|---|---|
|
GetCachedAllottedGeometry() |
||
|
UMaterialIns... |
GetEffectMaterial() |
Get the current dynamic effect material applied to the retainer box. |
|
RequestRender() |
Requests the retainer redrawn the contents it has. |
|
|
SetEffectMaterial ( |
Set a new effect material to the retainer widget. |
|
|
SetRenderingPhase |
Requests the retainer redrawn the contents it has. |
|
|
SetRetainRendering ( |
Set the flag for if we retain the render or pass-through |
|
|
SetTextureParameter ( |
Sets the name of the texture parameter to set the render target to on the material. |
Name | Description | ||
---|---|---|---|
|
OnSlotAdded ( |
||
|
OnSlotRemoved ( |
Name | Description | ||
---|---|---|---|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name | Description | ||
---|---|---|---|
|
CanEditChange ( |
Called by the editor to query whether a property of this object is allowed to be modified. |