struct
SceneCaptureComponent
UE's SceneCaptureComponent2D: a camera that renders the world into a RenderTargetAsset instead of the screen — a security monitor, a portal, a rear-view mirror, a minimap. The entity's transform is the camera and looks down its own -Z, the axis CameraComponent looks down; the target names an .mrt asset whose image any material's Texture Sample can bind. Each capture is a full scene render through its own SceneRenderer view, so every-frame captures cost what they say; a one-shot capture (captureEveryFrame off) renders once when it first appears and again on RequestCapture.
- Module
- Game
- Header
#include "Game/Components/SceneCaptureComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::string | renderTargetPath | |
float | fieldOfView | Default 90.0f. |
float | nearClip | Default 0.1f. |
float | farClip | Default 1000.0f. |
bool | captureEveryFrame | Off = capture once on the first frame the component is seen, then only when captureRequested is raised (a Visual Script graph or C++ calling for a fresh frame). On = a full render every frame. Default true. |
bool | captureRequested | Raised to force a capture next frame whatever captureEveryFrame says; the capture system clears it. Default false. |
uint32_t | viewId | The renderer view this capture renders through (0 = none yet), sized to the target; recreated when the target's size changes. Default 0. |
uint32_t | viewWidth | Default 0. |
uint32_t | viewHeight | Default 0. |
uint32_t | framesCaptured | Default 0. |
Generated from Game/Components/SceneCaptureComponent.h via game.json · Nov 5, 2026Version 1.0.0