Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Camera
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Camera/CameraTypes.h |
| Include | #include "Camera/CameraTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FMinimalViewInfo
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AspectRatio | Aspect Ratio (Width/Height) | |
| TOptional< EAspectRatioAxisConstraint > | AspectRatioAxisConstraint | Aspect ratio axis constraint override. | |
| float | AutoPlaneShift | Manually adjusts the planes of this camera, maintaining the distance between them. | |
| bool | bAutoCalculateOrthoPlanes | Option for the Ortho camera to automatically calculated the near/far plane | |
| uint32: 1 | bConstrainAspectRatio | If bConstrainAspectRatio is true, black bars will be added if the destination view has a different aspect ratio than this camera requested. | |
| bool | bUpdateOrthoPlanes | Adjusts the near/far planes and the view origin of the current camera automatically to avoid clipping and light artefacting | |
| bool | bUseCameraHeightAsViewTarget | If UpdateOrthoPlanes is enabled, this setting will use the cameras current height to compensate the distance to the general view (as a pseudo distance to view target when one isn't present) | |
| uint32: 1 | bUseFieldOfViewForLOD | If true, account for the field of view angle when computing which level of detail to use for meshes. | |
| uint32: 1 | bUseFirstPersonParameters | If bUseFirstPersonParameters is true, FirstPersonFOV and FirstPersonScale should be applied to primitives tagged as "IsFirstPerson". | |
| float | CropFraction | The fraction between 0.0 and 1.0 of the view to crop to during the final post process upscale, with 1.0 meaning no crop | |
| float | DesiredFOV | The originally desired horizontal field of view before any adjustments to account for different aspect ratios | |
| float | FirstPersonFOV | The horizontal field of view (in degrees) used for primitives tagged as "IsFirstPerson". | |
| float | FirstPersonScale | The scale to apply to primitives tagged as "IsFirstPerson". | |
| float | FOV | The horizontal field of view (in degrees) in perspective mode (ignored in orthographic mode). | |
| FVector | Location | Location | |
| FVector2D | OffCenterProjectionOffset | Off-axis / off-center projection offset as proportion of screen dimensions | |
| 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 | OverscanResolutionFraction | Resolution fraction that scales with the amount of overscan added to the view | |
| float | PerspectiveNearClipPlane | The near plane distance of the perspective view (in world units). | |
| float | PostProcessBlendWeight | Indicates if PostProcessSettings should be applied. | |
| FPostProcessSettings | PostProcessSettings | Post-process settings to use if PostProcessBlendWeight is non-zero. | |
| TOptional< FTransform > | PreviousViewTransform | Optional transform to be considered as this view's previous transform | |
| TEnumAsByte< ECameraProjectionMode::Type > | ProjectionMode | The type of camera. | |
| FRotator | Rotation | Rotation |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddWeightedViewInfo
(
const FMinimalViewInfo& OtherView, |
Combines this view with another one which will be weighted. | |
| void | ApplyBlendWeight
(
const float& Weight |
Applies weighting to this view, in order to be blended with another one. | |
| void | ApplyOverscan
(
float InOverscan, |
Apply overscan to the view info, which scales the field of view and ortho width to simulate expanding the view frustum. | |
| bool | AutoCalculateOrthoPlanes
(
FSceneViewProjectionData& InOutProjectionData |
Automatically calculates the Near/Far plane values for an Ortho camera | |
| void | BlendViewInfo
(
FMinimalViewInfo& OtherInfo, |
Blends view information Note: booleans are orred together, instead of blending | |
| float | Correction factor to apply to the first person transform used on primitives tagged as "IsFirstPerson" to achieve a first person specific field of view. | ||
| FMatrix | Calculates the projection matrix using this view info's aspect ratio (regardless of bConstrainAspectRatio) | ||
| void | CalculateProjectionMatrixGivenView
(
FMinimalViewInfo& ViewInfo, |
Calculates the projection matrix (and potentially a constrained view rectangle) given a FMinimalViewInfo and partially configured projection data (must have the view rect already set) | |
| void | CalculateProjectionMatrixGivenViewRectangle
(
FMinimalViewInfo& ViewInfo, |
Calculates the projection matrix (and potentially a constrained view rectangle) given a FMinimalViewInfo and partially configured projection data (must have the view rect already set). | |
| void | Removes all overscan from the view info. | ||
| bool | Equals
(
const FMinimalViewInfo& OtherInfo |
Is this equivalent to the other one? | |
| float | The near plane distance of the perspective view (in world units). | ||
| float | GetOverscan () |
Gets the total amount of overscan that has been applied to the view's frustum, with 0.0 meaning no overscan and 1.0 meaning 100% overscan | |
| void | SetCameraToViewTarget
(
const FVector ActorLocation |
Sets the camera distance from view target for AutoCalculateOrthoPlanes | |
| FVector | TransformWorldToFirstPerson
(
const FVector& WorldPosition, |
Transforms a world space location into "first person space". |