Navigation
Unreal Engine C++ API Reference > Runtime > CinematicCamera
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UCameraComponent
- UCineCameraComponent
- UDisplayClusterICVFXCameraComponent
- UVirtualCameraCineCameraComponent
References
Module | CinematicCamera |
Header | /Engine/Source/Runtime/CinematicCamera/Public/CineCameraComponent.h |
Include | #include "CineCameraComponent.h" |
Syntax
class UCineCameraComponent : public UCameraComponent
Remarks
A specialized version of a camera component, geared toward cinematic usage.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
uint32: 1 | bOverride_CustomNearClippingPlane | |
![]() |
uint8: 1 | bResetInterpolation | Set to true to skip any interpolations on the next update. Resets to false automatically. |
![]() |
FPlateCropSettings | CropSettings | Controls the crop settings. |
![]() |
float | CurrentAperture | Current aperture, in terms of f-stop (e.g. 2.8 for f/2.8) |
![]() |
float | CurrentFocalLength | Current focal length of the camera (i.e. controls FoV, zoom) |
![]() |
float | CurrentFocusDistance | Read-only. Control this value via FocusSettings. |
![]() |
float | CurrentHorizontalFOV | Read-only. Control this value with CurrentFocalLength (and filmback settings). |
![]() |
float | CustomNearClippingPlane | Set bOverride_CustomNearClippingPlane to true if you want to use a custom clipping plane instead of GNearClippingPlane. |
![]() |
TObjectPtr< UStaticMeshComponent > | DebugFocusPlaneComponent | Component for the debug focus plane visualization |
![]() |
TObjectPtr< UMaterialInstanceDynamic > | DebugFocusPlaneMID | Dynamic material instance for the debug focus plane visualization |
![]() |
FCameraFilmbackSettings | Filmback | Controls the filmback of the camera. |
![]() |
TObjectPtr< UMaterial > | FocusPlaneVisualizationMaterial | Material used for debug focus plane visualization |
![]() |
TObjectPtr< UStaticMesh > | FocusPlaneVisualizationMesh | Mesh used for debug focus plane visualization |
![]() |
FCameraFocusSettings | FocusSettings | Controls the camera's focus. |
![]() |
float | LastFocusDistance | Most recent calculated focus distance. Used for interpolation. |
![]() |
FCameraLensSettings | LensSettings | Controls the camera's lens. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constuctor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FString | Returns the lens name of the camera with the current settings. | |
![]() ![]() |
FString | Returns the filmback name of the camera with the current settings. | |
![]() ![]() |
float | Returns the horizonal FOV of the camera with current settings. | |
![]() ![]() |
FString | Returns the lens name of the camera with the current settings. | |
![]() ![]() |
float | Returns the vertical FOV of the camera with current settings. | |
![]() ![]() |
float | Returns the world to meters scale for the current UWorld | |
![]() |
void | ||
![]() |
void | SetCropPresetByName
(
const FString& InPresetName |
Set the current lens settings by preset name. |
![]() |
void | SetCropSettings
(
const FPlateCropSettings& NewCropSettings |
|
![]() |
void | SetCurrentAperture
(
const float NewCurrentAperture |
|
![]() |
void | SetCurrentFocalLength
(
float InFocalLength |
|
![]() |
void | SetCustomNearClippingPlane
(
const float NewCustomNearClippingPlane |
Sets near clipping plane of the cine camera. |
![]() |
void | SetFilmback
(
const FCameraFilmbackSettings& NewFilmback |
|
![]() |
void | SetFilmbackPresetByName
(
const FString& InPresetName |
Set the current preset settings by preset name. |
![]() |
void | SetFocusSettings
(
const FCameraFocusSettings& NewFocusSettings |
|
![]() |
void | SetLensPresetByName
(
const FString& InPresetName |
Set the current lens settings by preset name. |
![]() |
void | SetLensSettings
(
const FCameraLensSettings& NewLensSettings |
|
![]() ![]() |
void | UpdateCameraLens
(
float DeltaTime, |
|
![]() |
void | Update the debug focus plane position and orientation. |
Overridden from UCameraComponent
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | GetCameraView
(
float DeltaTime, |
Returns camera's Point of View. |
![]() ![]() ![]() |
FText | Returns the filmback text used for burnins on preview viewports. | |
![]() ![]() |
void | Can be called from external code to notify that this camera was cut to, so it can update things like interpolation if necessary. | |
![]() ![]() |
void | ||
![]() ![]() |
void | SetFieldOfView
(
float InFieldOfView |
Override setting FOV to manipulate Focal Length. |
Overridden from UActorComponent
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | OnComponentDestroyed
(
bool bDestroyingHierarchy |
Called when a component is destroyed |
![]() ![]() |
void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. |
![]() ![]() |
void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FString | DefaultFilmbackPreset | This property is now located on the UCineCameraSettings object |
![]() |
FString | DefaultFilmbackPresetName_DEPRECATED | This property has been removed and fully replaced by DefaultFilmbackPreset on the UCineCameraSettings object |
![]() |
float | DefaultLensFocalLength | This property is now located on the UCineCameraSettings object |
![]() |
float | DefaultLensFStop | This property is now located on the UCineCameraSettings object |
![]() |
FString | DefaultLensPresetName | This property is now located on the UCineCameraSettings object |
![]() |
TArray< FNamedFilmbackPreset > | FilmbackPresets | This property is now located on the UCineCameraSettings object |
![]() |
FCameraFilmbackSettings | FilmbackSettings_DEPRECATED | |
![]() |
TArray< FNamedLensPreset > | LensPresets | This property is now located on the UCineCameraSettings object |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FString | This function has been deprecated, please access the presets via the CineCameraSettings object. | |
![]() ![]() |
TArray< FNamedFilmbackPreset > const & | This function has been deprecated, please access the presets via the CineCameraSettings object. | |
![]() ![]() |
TArray< FNamedFilmbackPreset > | This function has been deprecated, please access the presets via the CineCameraSettings object. | |
![]() ![]() |
TArray< FNamedLensPreset > const & | This function has been deprecated, please access the presets via the CineCameraSettings object. | |
![]() ![]() |
TArray< FNamedLensPreset > | This function has been deprecated, please access the presets via the CineCameraSettings object. |