Language:
Discover
By Skill Level
By Category

USceneCaptureComponent2D

Choose your OS:

Inheritance Hierarchy

Syntax

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

Name Description

Public variable

uint32 : 1

 

bCameraCutThisFrame

True if we did a camera cut this frame.

Public variable

bool

 

bEnableClipPlane

Enables a clip plane while rendering the scene capture which is useful for portals.

Public variable

bool

 

bUseCustomProjectionMatrix

Whether a custom projection matrix will be used during rendering.

Public variable

TEnumAsByte < en...

 

CaptureSource

Public variable

FVector

 

ClipPlaneBase

Base position for the clip plane, can be any position on the plane.

Public variable

FVector

 

ClipPlaneNormal

Normal for the plane.

Public variable

TEnumAsByte < en...

 

CompositeMode

When enabled, the scene capture will composite into the render target instead of overwriting its contents.

Public variable

FMatrix

 

CustomProjectionMatrix

The custom projection matrix to use

Public variable

float

 

FOVAngle

Camera field of view (in degrees).

Public variable

float

 

OrthoWidth

The desired width (in world units) of the orthographic view (ignored in Perspective mode)

Public variable

float

 

PostProcessBlendWeight

Range (0.0, 1.0) where 0 indicates no effect, 1 indicates full effect.

Public variable

FPostProcessSet ...

 

PostProcessSettings

Public variable

TEnumAsByte < EC ...

 

ProjectionType

Public variable

UTextureRenderT ...

 

TextureTarget

Output render target of the scene capture that can be read in materals.

Constructors

Name Description

Public function

USceneCaptureComponent2D

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function

void

 

AddOrUpdateBlendable

(
    TScriptInterface < IBlendableInterfa ...,
    float InWeight
)

Adds an Blendable (implements IBlendableInterface ) to the array of Blendables (if it doesn't exist) and update the weight

Public function

void

 

CaptureScene()

Render the scene to the texture target immediately.

Public function

void

 

CaptureSceneDeferred()

Render the scene to the texture the next time the main view is rendered.

Public function

void

 

UpdateContent()

For backwards compatibility.

Overridden from USceneCaptureComponent

Name Description

Public function Virtual

void

 

UpdateSceneCaptureContents

(
    FSceneInterface * Scene
)

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

OnRegister()

WITH_EDITOR.

Public function Virtual

bool

 

RequiresGameThreadEndOfFrameUpdates()

Return true if this component requires end of frame updates to happen from the game thread.

Public function Virtual

void

 

SendRenderTransform_Concurrent()

Called to send a transform update for this component to the rendering thread

Public function Virtual

void

 

TickComponent

(
    float DeltaTime,
    enum ELevelTick TickType,
    FActorComponentTickFunction * T...
)

Function called every frame on this ActorComponent.

Overridden from UObject

Name Description

Public function Virtual

bool

 

CanEditChange

(
    const UProperty * InProperty
)

Called by the editor to query whether a property of this object is allowed to be modified.

Public function Virtual

void

 

PostEditChangeProperty

(
    FPropertyChangedEvent & PropertyCha...
)

Called when a property on this object has been modified externally

Public function Virtual

void

 

Serialize

(
    FArchive & Ar
)

WITH_EDITOR.

References

Module

Engine

Header

Runtime/Engine/Classes/Components/SceneCaptureComponent2D.h