Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- USceneCaptureComponent
- USceneCaptureComponent2D
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Components/SceneCaptureComponent2D.h |
Include | #include "Components/SceneCaptureComponent2D.h" |
Syntax
UCLASS (HideCategories=(Collision, Object, Physics, SceneComponent), ClassGroup=Rendering,
EditInlineNew, Meta=(BlueprintSpawnableComponent), MinimalAPI)
class USceneCaptureComponent2D : public USceneCaptureComponent
Remarks
Used to capture a 'snapshot' of the scene from a single plane and feed it to a render target.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() ![]() |
float | AutoPlaneShift | Manually adjusts the planes of this camera, maintaining the distance between them. |
![]() ![]() ![]() ![]() |
bool | bAutoCalculateOrthoPlanes | Automatically determine a min/max Near/Far clip plane position depending on OrthoWidth value |
![]() ![]() ![]() ![]() ![]() |
uint32: 1 | bCameraCutThisFrame | True if we did a camera cut this frame. |
![]() ![]() ![]() ![]() |
uint32: 1 | bConsiderUnrenderedOpaquePixelAsFullyTranslucent | Whether to only render exponential height fog on opaque pixels which were rendered by the scene capture. |
![]() ![]() ![]() ![]() |
bool | bEnableClipPlane | Enables a clip plane while rendering the scene capture which is useful for portals. |
![]() ![]() ![]() ![]() |
bool | bEnableOrthographicTiling | Render the scene in n frames (i.e TileCount) - Ignored in Perspective mode, works only in Orthographic mode when CaptureSource uses SceneColor (not FinalColor) If CaptureSource uses FinalColor, tiling will be ignored and a Warning message will be logged |
![]() ![]() ![]() ![]() |
uint32: 1 | bOverride_CustomNearClippingPlane | |
![]() ![]() ![]() ![]() |
bool | bRenderInMainRenderer | Render scene capture as additional render passes of the main renderer rather than as an independent renderer. |
![]() ![]() ![]() ![]() |
bool | bUpdateOrthoPlanes | Adjusts the near/far planes and the view origin of the current camera automatically to avoid clipping and light artefacting |
![]() ![]() ![]() ![]() |
bool | bUseCameraHeightAsViewTarget | If UpdateOrthoPlanes is enabled, this setting will use the cameras current height to compensate the distance to the general view (as a pseudo distance to view target when one isn't present) |
![]() ![]() ![]() ![]() |
bool | bUseCustomProjectionMatrix | Whether a custom projection matrix will be used during rendering. |
![]() ![]() ![]() |
bool | bUseFauxOrthoViewPos | |
![]() ![]() ![]() ![]() |
FVector | ClipPlaneBase | Base position for the clip plane, can be any position on the plane. |
![]() ![]() ![]() ![]() |
FVector | ClipPlaneNormal | Normal for the plane. |
![]() ![]() ![]() ![]() |
TEnumAsByte< enum ESceneCaptureCompositeMode > | CompositeMode | When enabled, the scene capture will composite into the render target instead of overwriting its contents. |
![]() ![]() ![]() ![]() |
float | CustomNearClippingPlane | Set bOverride_CustomNearClippingPlane to true if you want to use a custom clipping plane instead of GNearClippingPlane. |
![]() ![]() ![]() ![]() |
FMatrix | CustomProjectionMatrix | The custom projection matrix to use |
![]() |
TObjectPtr< class UDrawFrustumComponent > | DrawFrustum | The frustum component used to show visually where the camera field of view is |
![]() ![]() ![]() ![]() |
float | FOVAngle | Camera field of view (in degrees). |
![]() ![]() ![]() ![]() |
int32 | NumXTiles | Number of X tiles to render. Ignored in Perspective mode, works only in Orthographic mode |
![]() ![]() ![]() ![]() |
int32 | NumYTiles | Number of Y tiles to render. Ignored in Perspective mode, works only in Orthographic mode |
![]() ![]() ![]() ![]() |
float | OrthoWidth | The desired width (in world units) of the orthographic view (ignored in Perspective mode) |
![]() ![]() ![]() ![]() |
float | PostProcessBlendWeight | Range (0.0, 1.0) where 0 indicates no effect, 1 indicates full effect. |
![]() ![]() ![]() |
FPostProcessSettings | PostProcessSettings | |
![]() ![]() ![]() ![]() |
TEnumAsByte< ECameraProjectionMode::Type > | ProjectionType | |
![]() |
TArray< TWeakPtr< ISceneViewExtension, ESPMode::ThreadSafe > > | SceneViewExtensions | Array of scene view extensions specifically to apply to this scene capture |
![]() ![]() ![]() ![]() |
TObjectPtr< class UTextureRenderTarget2D > | TextureTarget | Output render target of the scene capture that can be read in materials. |
![]() |
int32 | TileID | Which tile to render of the orthographic view (ignored in Perspective mode) |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
USceneCaptureComponent2D
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | AddOrUpdateBlendable
(
TScriptInterface< IBlendableInterface > InBlendableObject, |
Adds an Blendable (implements IBlendableInterface) to the array of Blendables (if it doesn't exist) and update the weight |
![]() ![]() |
void | AddReferencedObjects
(
UObject* InThis, |
|
![]() ![]() ![]() |
void | CaptureScene () |
Render the scene to the texture target immediately. |
![]() |
void | Render the scene to the texture the next time the main view is rendered. | |
![]() ![]() |
void | GetCameraView
(
float DeltaTime, |
|
![]() ![]() |
bool | Return if orthographic tiling rendering is enabled or not | |
![]() ![]() |
int32 | GetNumXTiles () |
Return number of X tiles to render (to be used when orthographic tiling rendering is enabled) |
![]() ![]() |
int32 | GetNumYTiles () |
Return number of Y tiles to render (to be used when orthographic tiling rendering is enabled) |
![]() ![]() ![]() |
void | RemoveBlendable
(
TScriptInterface< IBlendableInterface > InBlendableObject |
Removes a blendable. |
![]() |
void | Reset Orthographic tiling counter | |
![]() |
void | SetCameraView
(
const FMinimalViewInfo& DesiredView |
|
![]() |
void | For backwards compatibility. | |
![]() |
void |
Overridden from USceneCaptureComponent
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | UpdateSceneCaptureContents
(
FSceneInterface* Scene |
Overridden from UActorComponent
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | OnComponentDestroyed
(
bool bDestroyingHierarchy |
Called when a component is destroyed |
![]() ![]() |
void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. |
![]() ![]() ![]() |
bool | Return true if this component requires end of frame updates to happen from the game thread. | |
![]() ![]() |
void | Called to send a transform update for this component to the rendering thread | |
![]() ![]() |
void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. |
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |