Navigation
API > API/Plugins > API/Plugins/Composite
Convenience layer for media texture integration, with additional processing options.
With composite meshes and default plugin materials, the media texture is projected into the scene & rendered separately as a custom render pass. The result is dilated and combined with other layers such as the main render (where the same composite meshes are rendered as holdouts).
| Name | UCompositeLayerPlate |
| Type | class |
| Header File | /Engine/Plugins/Compositing/Composite/Source/Composite/Public/Layers/CompositeLayerPlate.h |
| Include Path | #include "Layers/CompositeLayerPlate.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, Blueprintable, EditInlineNew, CollapseCategories,
Meta=(DisplayName="Plate"))
class UCompositeLayerPlate :
public UCompositeLayerBase ,
public FTickableGameObject
Inheritance Hierarchy
- FTickableObjectBase → FTickableGameObject → UCompositeLayerPlate
- UObjectBase → UObjectBaseUtility → UObject → UCompositeLayerBase → UCompositeLayerPlate
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UCompositeLayerPlate
(
const FObjectInitializer& ObjectInitializer |
Constructor. | Layers/CompositeLayerPlate.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UCompositeLayerPlate() |
Destructor. | Layers/CompositeLayerPlate.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CompositeTextureName | const FLazyName | Composite (media) texture material parameter name. | Layers/CompositeLayerPlate.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LayerPasses | TArray< TObjectPtr< UCompositePassBase > > | Passes applied during final compositing in post-processing. | Layers/CompositeLayerPlate.h |
|
| MediaPasses | TArray< TObjectPtr< UCompositePassBase > > | Media texture pre-processing passes, applied before rendering. | Layers/CompositeLayerPlate.h |
|
| ScenePasses | TArray< TObjectPtr< UCompositePassBase > > | Passes applied after media passes, onto composite meshes only. | Layers/CompositeLayerPlate.h |
|
| Texture | TObjectPtr< UTexture > | Media texture for compositing layer. | Layers/CompositeLayerPlate.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CachedValidMediaPasses | int32 | Cached number of valid media passes. | Layers/CompositeLayerPlate.h | |
| CachedValidScenePasses | int32 | Cached number of valid scene passes. | Layers/CompositeLayerPlate.h | |
| CompositeMeshes | TArray< TSoftObjectPtr< AActor > > | Actors whose primitive mesh components will be marked as primitive alpha holdout, and rendered separately with the projected (media) texture. | Layers/CompositeLayerPlate.h |
|
| MediaRenderTarget | TObjectPtr< UTextureRenderTarget2D > | Processed media texture render target. | Layers/CompositeLayerPlate.h |
|
| PlateMode | ECompositePlateMode | The plate sampling & rendering mode: direct texture sampling or separate composite mesh render. | Layers/CompositeLayerPlate.h |
|
| PreEditCompositeMeshes | TArray< TSoftObjectPtr< AActor > > | Pre-edit list of registered composite meshes. | Layers/CompositeLayerPlate.h | |
| SceneRenderTarget | TObjectPtr< UTextureRenderTarget2D > | Processed media texture with additional passes only for scene composite meshes. | Layers/CompositeLayerPlate.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TArray< TSoftObjectPtr< AActor > > GetCompositeMeshes() |
Get composite meshes. | Layers/CompositeLayerPlate.h |
|
UTexture * GetCompositeTexture() |
Returns the media texture, optionally pre-processed with layer & scene-only passes into a render target. | Layers/CompositeLayerPlate.h |
|
ECompositePlateMode GetPlateMode() |
Get the plate sampling & rendering mode | Layers/CompositeLayerPlate.h |
|
TArray< UPrimitiveComponent * > GetPrimitives() |
Get array of all composite mesh primitives. | Layers/CompositeLayerPlate.h | |
void SetCompositeMeshes
(
TArray< TSoftObjectPtr< AActor > > InCompositeMeshes |
Set composite meshes. | Layers/CompositeLayerPlate.h |
|
void SetPlateMode
(
ECompositePlateMode InPlateMode |
Set the plate sampling & rendering mode | Layers/CompositeLayerPlate.h |
|
Overridden from UCompositeLayerBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool GetProxy
(
FTraversalContext& InContext, |
Getter function to override, returning pass layer proxies to be passed to the render thread. | Layers/CompositeLayerPlate.h | |
virtual void OnRemoved
(
const UWorld* World |
Called when the layer is removed or composite actor is destroyed. | Layers/CompositeLayerPlate.h | |
virtual void OnRenderingStateChange
(
bool bApply |
Called when composite actor rendering state changes. | Layers/CompositeLayerPlate.h | |
virtual void SetEnabled
(
bool bInEnabled |
Set the enabled state. | Layers/CompositeLayerPlate.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
Layers/CompositeLayerPlate.h | ||
virtual bool CanEditChange
(
const FProperty* InProperty |
Layers/CompositeLayerPlate.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Layers/CompositeLayerPlate.h | ||
virtual void PostLoad() |
Layers/CompositeLayerPlate.h | ||
virtual void PostTransacted
(
const FTransactionObjectEvent& InTransactionEvent |
Layers/CompositeLayerPlate.h | ||
virtual void PreEditChange
(
FProperty* PropertyThatWillChange |
Layers/CompositeLayerPlate.h |
Overridden from FTickableGameObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UWorld * GetTickableGameObjectWorld() |
Layers/CompositeLayerPlate.h | ||
virtual bool IsTickableInEditor() |
Layers/CompositeLayerPlate.h | ||
virtual bool IsTickableWhenPaused() |
Layers/CompositeLayerPlate.h |
Overridden from FTickableObjectBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TStatId GetStatId() |
Layers/CompositeLayerPlate.h | ||
virtual ETickableTickType GetTickableTickType() |
Layers/CompositeLayerPlate.h | ||
virtual bool IsTickable() |
Layers/CompositeLayerPlate.h | ||
virtual void Tick
(
float DeltaTime |
Layers/CompositeLayerPlate.h |