RealDocs

UCameraComponent::GetCameraView

function Engine Blueprint Since unknown
#include "Camera/CameraComponent.h"
Access: public Specifiers: virtualUFUNCTIONBlueprintCallable

Description

Computes this camera's point of view for the current frame, combining its transform, field of view, and post-process settings into a FMinimalViewInfo.

Caveats & Gotchas

  • Called every frame by the owning camera actor/manager — it's not something you typically call yourself, but it's the standard override point for custom camera behavior in a UCameraComponent subclass.
  • Overrides must call Super::GetCameraView() first (or otherwise fully populate DesiredView) since the base implementation applies FieldOfView, ProjectionMode, and PostProcessSettings.

Signature

UFUNCTION(BlueprintCallable, Category = Camera)
virtual void GetCameraView(float DeltaTime, FMinimalViewInfo& DesiredView);

Parameters

Name Type Description Default
DeltaTime float Time in seconds since the last camera update.
DesiredView FMinimalViewInfo& Out parameter filled in with the resulting location, rotation, FOV, projection mode, and post-process settings for this frame.

Return Type

void

Example

Override to add custom view logic C++
void UMyCameraComponent::GetCameraView(float DeltaTime, FMinimalViewInfo& DesiredView)
{
    Super::GetCameraView(DeltaTime, DesiredView);
    DesiredView.FOV += ExtraZoomFOVOffset;
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.