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 |
|
| MaterialParameterCollection | TObjectPtr< UMaterialParameterCollection > | The Material Parameter Collection in which the view-projection matrix should be stored. | Components/CompositeViewProjectionComponent.h |
|
| MatrixParameterName | FName | Parameter name of the first element of the transform in the Material Parameter Collection set above. | Components/CompositeViewProjectionComponent.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LastCameraComponent | TObjectPtr< UCameraComponent > | Cached most recent target camera, used to clean up the old camera when the user changes the target | 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 | |
| TargetCameraComponent | FComponentReference | The CineCameraComponent whose view-projection matrix is used. | Components/CompositeViewProjectionComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ForceUpdate() |
Force update the Material Parameter Collection this frame. | Components/CompositeViewProjectionComponent.h |
|
FComponentReference & GetTargetComponent() |
Target component getter. | Components/CompositeViewProjectionComponent.h |
|
void SetTargetComponent
(
const FComponentReference& InComponentReference |
Target component setter. | Components/CompositeViewProjectionComponent.h |
|
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 |