engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
USceneCaptureComponent2D类 参考

Used to capture a 'snapshot' of the scene from a single plane and feed it to a render target. 更多...

#include <SceneCaptureComponent2D.h>

继承自 USceneCaptureComponent .

Public 成员函数

void AddOrUpdateBlendable (TScriptInterface< IBlendableInterface > InBlendableObject, float InWeight=1.0f)
 Adds an Blendable (implements IBlendableInterface) to the array of Blendables (if it doesn't exist) and update the weight
 
void CaptureScene ()
 Render the scene to the texture target immediately. 更多...
 
void CaptureSceneDeferred ()
 Render the scene to the texture the next time the main view is rendered.
 
virtual void OnComponentDestroyed (bool bDestroyingHierarchy) override
 Called when a component is destroyed 更多...
 
virtual void OnRegister () override
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual bool RequiresGameThreadEndOfFrameUpdates () const override
 return true if this component requires end of frame updates to happen from the game thread.
 
virtual void SendRenderTransform_Concurrent () override
 Called to send a transform update for this component to the rendering thread 更多...
 
virtual void Serialize (FArchive &Ar)
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 Function called every frame on this ActorComponent. 更多...
 

Public 属性

uint32 bCameraCutThisFrame: 1
 True if we did a camera cut this frame. 更多...
 
uint32 bConsiderUnrenderedOpaquePixelAsFullyTranslucent: 1
 Treat unrendered opaque pixels as fully translucent. 更多...
 
bool bDisableFlipCopyGLES
 Scene captures render an extra flip pass for LDR color on GLES so that the final output is oriented correctly. 更多...
 
bool bEnableClipPlane
 Enables a clip plane while rendering the scene capture which is useful for portals. 更多...
 
bool bUseCustomProjectionMatrix
 Whether a custom projection matrix will be used during rendering. 更多...
 
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 = 0
 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
 
float FOVAngle
 Camera field of view (in degrees).
 
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.
 
TArray< TWeakPtr< ISceneViewExtension, ESPMode::ThreadSafe > > SceneViewExtensions
 Array of scene view extensions specifically to apply to this scene capture
 
class UTextureRenderTarget2D * TextureTarget
 Output render target of the scene capture that can be read in materals.
 

详细描述

Used to capture a 'snapshot' of the scene from a single plane and feed it to a render target.

成员函数说明

◆ CaptureScene()

void USceneCaptureComponent2D::CaptureScene ( )

Render the scene to the texture target immediately.


This should not be used if bCaptureEveryFrame is enabled, or the scene capture will render redundantly.

◆ OnComponentDestroyed()

virtual void USceneCaptureComponent2D::OnComponentDestroyed ( bool  bDestroyingHierarchy)
overridevirtual

Called when a component is destroyed

参数
bDestroyingHierarchy- True if the entire component hierarchy is being torn down, allows avoiding expensive operations

重载 USceneComponent .

◆ SendRenderTransform_Concurrent()

virtual void USceneCaptureComponent2D::SendRenderTransform_Concurrent ( )
overridevirtual

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

警告
This is called concurrently on multiple threads (but never the same component concurrently)

重载 UActorComponent .

◆ Serialize()

virtual void USceneCaptureComponent2D::Serialize ( FArchive &  Ar)
virtual

Handles reading, writing, and reference collecting using FArchive.

This implementation handles all FProperty serialization, but can be overridden for native variables.

重载 UActorComponent .

◆ TickComponent()

virtual void USceneCaptureComponent2D::TickComponent ( float  DeltaTime,
enum ELevelTick  TickType,
FActorComponentTickFunction *  ThisTickFunction 
)
overridevirtual

Function called every frame on this ActorComponent.

Override this function to implement custom logic to be executed every frame. Only executes if the component is registered, and also PrimaryComponentTick.bCanEverTick must be set to true.

参数
DeltaTime- The time since the last tick.
TickType- The kind of tick this is, for example, are we paused, or 'simulating' in the editor
ThisTickFunction- Internal tick function struct that caused this to run

重载 UActorComponent .

类成员变量说明

◆ bCameraCutThisFrame

uint32 USceneCaptureComponent2D::bCameraCutThisFrame

True if we did a camera cut this frame.

Automatically reset to false at every capture. This flag affects various things in the renderer (such as whether to use the occlusion queries from last frame, and motion blur). Similar to UPlayerCameraManager::bGameCameraCutThisFrame.

◆ bConsiderUnrenderedOpaquePixelAsFullyTranslucent

uint32 USceneCaptureComponent2D::bConsiderUnrenderedOpaquePixelAsFullyTranslucent

Treat unrendered opaque pixels as fully translucent.

This is important for effects such as exponential weight fog, so it does not get applied on unrendered opaque pixels.

◆ bDisableFlipCopyGLES

bool USceneCaptureComponent2D::bDisableFlipCopyGLES

Scene captures render an extra flip pass for LDR color on GLES so that the final output is oriented correctly.

This check disabled the extra flip pass, improving performance, but causes the capture to be flipped vertically. (Does not affect scene captures on other non-GLES renderers or with non-LDR output)

◆ bEnableClipPlane

bool USceneCaptureComponent2D::bEnableClipPlane

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


The global clip plane must be enabled in the renderer project settings for this to work.

◆ bUseCustomProjectionMatrix

bool USceneCaptureComponent2D::bUseCustomProjectionMatrix

Whether a custom projection matrix will be used during rendering.

Use with caution. Does not currently affect culling


该类的文档由以下文件生成: