#include <ComposableCameraViewTargetProxyNode.h>

Inherits: UComposableCameraCameraNodeBase

A lightweight camera node that reads FMinimalViewInfo from a target actor's UCameraComponent each tick and converts it into a FComposableCameraPose.

This node is NOT meant to be placed in a camera type asset by designers. It is created programmatically by the PCM's SetViewTarget override (implicit camera activation) to relay an external camera's state into CCS.

SetViewTargetActor() points to a specific actor. The node reads from that actor's UCameraComponent every tick. If the target actor is missing or has no UCameraComponent, the node outputs the unmodified input pose.

Public Methods

Return Name Description
UComposableCameraViewTargetProxyNode inline
void OnTickNode_Implementation virtual
EComposableCameraNodePatchCompatibility GetPatchCompatibility_Implementation virtual const inline
void SetViewTargetActor Set the actor and cache its UCameraComponent.
AActor * GetViewTargetActor const inline Get the current view target actor.

UComposableCameraViewTargetProxyNode

inline

inline UComposableCameraViewTargetProxyNode()

OnTickNode_Implementation

virtual

virtual void OnTickNode_Implementation(float DeltaTime, const FComposableCameraPose & CurrentCameraPose, FComposableCameraPose & OutCameraPose)

GetPatchCompatibility_Implementation

virtual const inline

virtual inline EComposableCameraNodePatchCompatibility GetPatchCompatibility_Implementation() const

SetViewTargetActor

void SetViewTargetActor(AActor * InActor)

Set the actor and cache its UCameraComponent.


GetViewTargetActor

const inline

inline AActor * GetViewTargetActor() const

Get the current view target actor.

Private Attributes

Return Name Description
TWeakObjectPtr< AActor > ViewTargetActor The actor whose UCameraComponent provides the camera view each tick.
TWeakObjectPtr< UCameraComponent > CachedCameraComponent Cached camera component — resolved once in SetViewTargetActor.

ViewTargetActor

TWeakObjectPtr< AActor > ViewTargetActor

The actor whose UCameraComponent provides the camera view each tick.


CachedCameraComponent

TWeakObjectPtr< UCameraComponent > CachedCameraComponent

Cached camera component — resolved once in SetViewTargetActor.