Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Camera/CameraComponent.h |
Include |
#include "Camera/CameraComponent.h" |
class UCameraComponent : public USceneComponent
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 component and use its location, rotation, and settings.
Name | Description | ||
---|---|---|---|
|
float |
AdditiveFOVOffset |
An optional extra FOV offset to adjust the final view without modifying the component |
|
AdditiveOffset |
An optional extra transform to adjust the final view without moving the component, in the camera's local space |
|
|
float |
AspectRatio |
Aspect Ratio (Width/Height) |
|
uint8: 1 |
bCameraMeshHiddenInGame |
If the camera mesh is visible in game. Only relevant when running editor builds. |
|
uint8: 1 |
bConstrainAspectRatio |
If bConstrainAspectRatio is true, black bars will be added if the destination view has a different aspect ratio than this camera requested. |
|
bDrawFrustumAllowed |
The Frustum visibility flag for draw frustum component initialization. |
|
|
uint8: 1 |
bLockToHmd |
True if the camera's orientation and position should be locked to the HMD |
|
uint8: 1 |
bUseAdditiveOffset |
True to enable the additive view offset, for adjusting the view without moving the component. |
|
uint8: 1 |
bUseFieldOfViewForLOD |
If true, account for the field of view angle when computing which level of detail to use for meshes. |
|
uint8: 1 |
bUsePawnControlRotation |
If this camera component is placed on a pawn, should it use the view/control rotation of the pawn where possible? |
|
TObjectPtr< cla... |
CameraMesh |
|
|
DrawFrustum |
The frustum component used to show visually where the camera field of view is. |
|
|
ExtraPostProcessBlends |
Optional extra PostProcessing blends stored for this camera. |
|
|
TArray< float > |
ExtraPostProcessBlendWeights |
|
|
float |
FieldOfView |
The horizontal field of view (in degrees) in perspective mode (ignored in Orthographic mode) |
|
float |
OrthoFarClipPlane |
The far plane distance of the orthographic view (in world units) |
|
float |
OrthoNearClipPlane |
The near plane distance of the orthographic view (in world units) |
|
float |
OrthoWidth |
The desired width (in world units) of the orthographic view (ignored in Perspective mode) |
|
float |
PostProcessBlendWeight |
Indicates if PostProcessSettings should be used when using this Camera to view through. |
|
PostProcessSettings |
Post process settings to use for this camera. |
|
|
TEnumAsByte< EC... |
ProjectionMode |
The type of camera. |
|
ProxyMeshComponent |
The camera mesh to show visually where the camera is placed. |
Name | Description | |
---|---|---|
|
UCameraComponent ( |
Name | Description | ||
---|---|---|---|
|
AddAdditiveOffset ( |
Applies the given additive offset, preserving any existing offset |
|
|
AddExtraPostProcessBlend ( |
Stores a given PP and weight to be later applied when the final PP is computed. |
|
|
AddOrUpdateBlendable ( |
Adds an Blendable (implements IBlendableInterface) to the array of Blendables (if it doesn't exist) and update the weight |
|
|
AddReferencedObjects ( |
||
|
ClearAdditiveOffset() |
Removes any additive offset. |
|
|
ClearExtraPostProcessBlends() |
Removes any extra PP blends. |
|
|
GetAdditiveOffset ( |
Get the additive offset |
|
|
GetCameraView ( |
Returns camera's Point of View. |
|
|
GetExtraPostProcessBlends ( |
Returns any extra PP blends that were stored. |
|
|
GetFilmbackText() |
Returns the filmback text used for burnins on preview viewports. |
|
|
NotifyCameraCut() |
Can be called from external code to notify that this camera was cut to, so it can update things like interpolation if necessary. |
|
|
OnCameraMeshHiddenChanged() |
Internal function for updating the camera mesh visibility in PIE |
|
|
OverrideFrustumColor ( |
||
|
RefreshVisualRepresentation() |
Refreshes the visual components to match the component state. |
|
|
RemoveBlendable |
Removes a blendable. |
|
|
ResetProxyMeshTransform() |
||
|
RestoreFrustumColor() |
||
|
SetAspectRatio ( |
||
|
SetCameraMesh ( |
||
|
SetConstraintAspectRatio ( |
||
|
SetFieldOfView ( |
||
|
SetOrthoFarClipPlane ( |
||
|
SetOrthoNearClipPlane ( |
||
|
SetOrthoWidth ( |
||
|
SetPostProcessBlendWeight ( |
||
|
SetProjectionMode ( |
||
|
SetUseFieldOfViewForLOD ( |
||
|
UpdateProxyMeshTransform() |
Ensure the proxy mesh is in the correct place |
Name | Description | ||
---|---|---|---|
|
OnUpdateTransform ( |
Native callback when this component is moved |
Name | Description | ||
---|---|---|---|
|
CheckForErrors() |
Function that gets called from within Map_Check to allow this actor component to check itself for any potential errors and register them with map check dialog. |
|
|
GetEditorPreviewInfo ( |
Supplies the editor with a view specific to this component (think a view from a camera components POV, a render, etc.). |
|
|
OnComponentDestroyed ( |
Called when a component is destroyed |
|
|
OnRegister() |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. |
Name | Description | ||
---|---|---|---|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
|
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
Name | Description | ||
---|---|---|---|
|
uint32: 1 |
bUseControllerViewRotation_DEPRECATED |
DEPRECATED: use bUsePawnControlRotation instead |