Header <Camera/CameraComponent.h>

#include "Camera/CameraComponent.h"
Module: Engine Source: Engine/Source/Runtime/Engine/Classes/Camera/CameraComponent.h

Includes 8

<CoreMinimal.h>
<UObject/ObjectMacros.h>
<UObject/ScriptInterface.h>
<Components/SceneComponent.h>
<Components/StaticMeshComponent.h>
<Engine/BlendableInterface.h>
<Engine/Scene.h>
<Camera/CameraTypes.h>

Contents

UCameraComponent
Represents a camera viewpoint and settings, such as projection type, field of view, and post-process overrides. The default behavior for an actor used as the camera view target is to look for an attached camera…
(uclass class : USceneComponent)

class UCameraComponent

class UCameraComponent : public USceneComponentUCLASSHideCategories=(Mobility, Rendering, LOD)BlueprintableClassGroup=CameraMinimalAPI
Represents a camera viewpoint and settings, such as projection type, field of view, and post-process overrides. The default behavior for an actor used as the camera view target is to look for an attached camera…

Member functions 37

SetFieldOfView
virtual void SetFieldOfView(float InFieldOfView);UFUNCTIONBlueprintCallableCategory=Camera
SetFirstPersonFieldOfView
virtual void SetFirstPersonFieldOfView(float InFirstPersonFieldOfView);UFUNCTIONBlueprintCallableCategory=Camera
SetFirstPersonScale
virtual void SetFirstPersonScale(float InFirstPersonScale);UFUNCTIONBlueprintCallableCategory=Camera
SetOrthoWidth
void SetOrthoWidth(float InOrthoWidth);UFUNCTIONBlueprintCallableCategory=Camera
SetAutoCalculateOrthoPlanes
void SetAutoCalculateOrthoPlanes(bool bAutoCalculate);UFUNCTIONBlueprintCallableCategory=Camera
SetAutoPlaneShift
void SetAutoPlaneShift(float InAutoPlaneShift);UFUNCTIONBlueprintCallableCategory=Camera
SetOrthoNearClipPlane
void SetOrthoNearClipPlane(float InOrthoNearClipPlane);UFUNCTIONBlueprintCallableCategory=Camera
SetOrthoFarClipPlane
void SetOrthoFarClipPlane(float InOrthoFarClipPlane);UFUNCTIONBlueprintCallableCategory=Camera
SetUpdateOrthoPlanes
void SetUpdateOrthoPlanes(bool bInUpdateOrthoPlanes);UFUNCTIONBlueprintCallableCategory=Camera
SetUseCameraHeightAsViewTarget
void SetUseCameraHeightAsViewTarget(bool bInUseCameraHeightAsViewTarget);UFUNCTIONBlueprintCallableCategory=Camera
SetAspectRatio
void SetAspectRatio(float InAspectRatio);UFUNCTIONBlueprintCallableCategory=Camera
SetAspectRatioAxisConstraint
void SetAspectRatioAxisConstraint(EAspectRatioAxisConstraint InAspectRatioAxisConstraint);UFUNCTIONBlueprintCallableCategory=Camera
SetConstraintAspectRatio
void SetConstraintAspectRatio(bool bInConstrainAspectRatio);UFUNCTIONBlueprintCallableCategory=Camera
SetUseFieldOfViewForLOD
void SetUseFieldOfViewForLOD(bool bInUseFieldOfViewForLOD);UFUNCTIONBlueprintCallableCategory=Camera
SetOverscan
void SetOverscan(float InOverscan);UFUNCTIONBlueprintCallableCategory=Camera
SetAsymmetricOverscan
void SetAsymmetricOverscan(const FVector4f& InAsymmetricOverscan);UFUNCTION
SetScaleResolutionWithOverscan
void SetScaleResolutionWithOverscan(bool bInScaleResolutionWithOverscan);UFUNCTIONBlueprintCallableCategory=Camera
Sets whether to scale the resolution by the amount of overscan so that the original view frustum remains the same resolution. Note that when enabled, increasing overscan will result in increased rendering workload,…
SetCropOverscan
void SetCropOverscan(bool bInCropOverscan);UFUNCTIONBlueprintCallableCategory=Camera
Sets whether to crop the overscanned pixels at the end of the rendering pipeline, allowing the overscanned pixels to be used in post process effects that need extra pixels beyond the view frustum (e.g. lens…
SetEnableFirstPersonFieldOfView
void SetEnableFirstPersonFieldOfView(bool bInEnableFirstPersonFieldOfView);UFUNCTIONBlueprintCallableCategory=Camera
SetEnableFirstPersonScale
void SetEnableFirstPersonScale(bool bInEnableFirstPersonScale);UFUNCTIONBlueprintCallableCategory=Camera
SetProjectionMode
void SetProjectionMode(ECameraProjectionMode::Type InProjectionMode);UFUNCTIONBlueprintCallableCategory=Camera
SetPostProcessBlendWeight
void SetPostProcessBlendWeight(float InPostProcessBlendWeight);UFUNCTIONBlueprintCallableCategory=Camera
OnRegister
virtual void OnRegister() override;
UActorComponent interface
OnUpdateTransform
virtual void OnUpdateTransform(EUpdateTransformFlags UpdateTransformFlags, ETeleportType Teleport) override;
IsXRHeadTrackedCamera
bool IsXRHeadTrackedCamera() const;protected
HandleXRCamera
virtual void HandleXRCamera(float DeltaTime);protected
GetCameraView
virtual void GetCameraView(float DeltaTime, FMinimalViewInfo& DesiredView);UFUNCTIONBlueprintCallableCategory=Camera
Returns camera's Point of View. Called by Camera class. Subclass and postprocess to add any effects.
AddOrUpdateBlendable
void AddOrUpdateBlendable(TScriptInterface<IBlendableInterface> InBlendableObject, float InWeight = 1.0f);UFUNCTIONBlueprintCallableCategory=Rendering
Adds an Blendable (implements IBlendableInterface) to the array of Blendables (if it doesn't exist) and update the weight
RemoveBlendable
void RemoveBlendable(TScriptInterface<IBlendableInterface> InBlendableObject);UFUNCTIONBlueprintCallableCategory=Rendering
Removes a blendable.
OnCameraMeshHiddenChanged
void OnCameraMeshHiddenChanged();protectedUFUNCTION
Internal function for updating the camera mesh visibility in PIE
AddAdditiveOffset
void AddAdditiveOffset(FTransform const& Transform, float FOV);
Applies the given additive offset, preserving any existing offset
ClearAdditiveOffset
void ClearAdditiveOffset();
Removes any additive offset.
GetAdditiveOffset
void GetAdditiveOffset(FTransform& OutAdditiveOffset, float& OutAdditiveFOVOffset) const;
Get the additive offset
AddExtraPostProcessBlend
void AddExtraPostProcessBlend(FPostProcessSettings const& PPSettings, float PPBlendWeight);
Stores a given PP and weight to be later applied when the final PP is computed. Used for things like in-editor camera animation preview.
ClearExtraPostProcessBlends
void ClearExtraPostProcessBlends();
Removes any extra PP blends.
GetExtraPostProcessBlends
void GetExtraPostProcessBlends(TArray<FPostProcessSettings>& OutSettings, TArray<float>& OutWeights) const;
Returns any extra PP blends that were stored.
NotifyCameraCut
virtual void NotifyCameraCut();
Can be called from external code to notify that this camera was cut to, so it can update things like interpolation if necessary.