This class is responsible for rendering user widgets onto a target texture.
More...
#include "OperatingSystemWidgetDrawer.h"
This class is responsible for rendering user widgets onto a target texture.
◆ FOperatingSystemWidgetDrawer() [1/2]
FOperatingSystemWidgetDrawer::FOperatingSystemWidgetDrawer |
( |
| ) |
|
|
inline |
◆ FOperatingSystemWidgetDrawer() [2/2]
FOperatingSystemWidgetDrawer::FOperatingSystemWidgetDrawer |
( |
const bool | bUseGamma | ) |
|
|
explicit |
◆ ~FOperatingSystemWidgetDrawer()
FOperatingSystemWidgetDrawer::~FOperatingSystemWidgetDrawer |
( |
| ) |
|
◆ DrawWidget()
bool FOperatingSystemWidgetDrawer::DrawWidget |
( |
UUserWidget * | Widget, |
|
|
const bool | bDeferUpdate, |
|
|
const float | DeltaTime ) const |
Draws a user widget onto the target texture using the operating system widget drawer.
- Parameters
-
Widget | The user widget to draw. It should be a valid UUserWidget object. |
bDeferUpdate | Whether to defer updating the widget. If true, the widget will be updated on the next tick. |
DeltaTime | The time passed since the last frame in seconds. |
- Returns
- True if the widget was successfully drawn onto the target texture, false otherwise.
◆ SetTargetTexture()
void FOperatingSystemWidgetDrawer::SetTargetTexture |
( |
UTextureRenderTarget2D * | TargetTexture | ) |
|
Sets the target texture for the operating system widget drawer to render onto.
- Parameters
-
TargetTexture | The target texture to set. It should be a UTextureRenderTarget2D object. |
The documentation for this class was generated from the following files: