Navigation
API > API/Plugins > API/Plugins/Composite
Component responsible for continuously updating the specified material parameter collection with a camera view projection matrix (to be used for texture projection in materials).
| Name | UCompositeViewProjectionComponent |
| Type | class |
| Header File | /Engine/Plugins/Compositing/Composite/Source/Composite/Public/Components/CompositeViewProjectionComponent.h |
| Include Path | #include "Components/CompositeViewProjectionComponent.h" |
Syntax
UCLASS (MinimalAPI, EditInlineNew,
HideCategories=(Activation, Transform, Lighting, Rendering, Tags, Cooking, Physics, LOD, AssetUserData, Navigation),
ClassGroup=Composite,
Meta=(BlueprintSpawnableComponent, DisplayName="Camera View Projection"))
class UCompositeViewProjectionComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UCompositeViewProjectionComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UCompositeViewProjectionComponent
(
const FObjectInitializer& ObjectInitializer |
Components/CompositeViewProjectionComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsEnabled | bool | Whether or not the component activates the view-projection matrix Material Parameter Collection update. | Components/CompositeViewProjectionComponent.h |
|
| ClipToWorldMatrixParameter | FName | Parameter name of the first element of the inverse view projection matrix in the Material Parameter Collection set above. | Components/CompositeViewProjectionComponent.h |
|
| MaterialParameterCollection | TObjectPtr< UMaterialParameterCollection > | The Material Parameter Collection in which the view-projection matrix should be stored. | Components/CompositeViewProjectionComponent.h |
|
| ScreenToClipMatrixParameter | FName | Parameter name of the first element of the screen to clip matrix in the Material Parameter Collection set above. | Components/CompositeViewProjectionComponent.h |
|
| ViewProjectionMatrixParameter | FName | Parameter name of the first element of the view projection matrix in the Material Parameter Collection set above. | Components/CompositeViewProjectionComponent.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CameraActor | TSoftObjectPtr< AActor > | The camera whose view-projection matrix is used. | Components/CompositeViewProjectionComponent.h |
|
| LastViewProjectionMatrix | FMatrix | Cached view projection matrix, to avoid needless MPC updates. | Components/CompositeViewProjectionComponent.h | |
| OnWorldPreSendAllEndOfFrameUpdatesHandle | FDelegateHandle | Post-viewport update callback. | Components/CompositeViewProjectionComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ForceUpdate() |
Force update the Material Parameter Collection this frame. | Components/CompositeViewProjectionComponent.h |
|
const TSoftObjectPtr< AActor > & GetCameraActor() |
Camera actor getter. | Components/CompositeViewProjectionComponent.h |
|
UCameraComponent * GetCameraComponent() |
Camera component getter. | Components/CompositeViewProjectionComponent.h |
|
void SetCameraActor
(
const TSoftObjectPtr< AActor >& InActor |
Camera actor setter. | Components/CompositeViewProjectionComponent.h |
|
void SetCameraComponent
(
UCameraComponent* InComponent |
Camera component setter. | Components/CompositeViewProjectionComponent.h |
|
Public Virtual
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnRegister() |
Components/CompositeViewProjectionComponent.h | ||
virtual void OnUnregister() |
Components/CompositeViewProjectionComponent.h | ||
virtual void TickComponent
(
float DeltaTime, |
Components/CompositeViewProjectionComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostDuplicate
(
bool bDuplicateForPIE |
Components/CompositeViewProjectionComponent.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Components/CompositeViewProjectionComponent.h | ||
virtual void PostEditImport() |
Components/CompositeViewProjectionComponent.h | ||
virtual void PostInitProperties() |
Components/CompositeViewProjectionComponent.h | ||
virtual void PostLoad() |
Components/CompositeViewProjectionComponent.h |