Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Camera
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCameraModifier
- UCameraModifier_CameraShake
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Camera/CameraModifier.h |
| Include | #include "Camera/CameraModifier.h" |
Syntax
UCLASS (BlueprintType, Blueprintable, MinimalAPI)
class UCameraModifier : public UObject
Remarks
A CameraModifier is a base class for objects that may adjust the final camera properties after being computed by the APlayerCameraManager (
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | Alpha | Current blend alpha. | |
| float | AlphaInTime | When blending in, alpha proceeds from 0 to 1 over this time | |
| float | AlphaOutTime | When blending out, alpha proceeds from 1 to 0 over this time | |
| uint32: 1 | bDebug | If true, enables certain debug visualization features. | |
| uint32: 1 | bDisabled | If true, do not apply this modifier to the camera. | |
| uint32: 1 | bExclusive | If true, no other modifiers of same priority allowed. | |
| uint32: 1 | bPendingDisable | If true, this modifier will disable itself when finished interpolating out. | |
| TObjectPtr< class APlayerCameraManager > | CameraOwner | Camera this object is associated with. | |
| uint8 | Priority | Priority value that determines the order in which modifiers are applied. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCameraModifier
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddedToCamera
(
APlayerCameraManager* Camera |
Allows any custom initialization. Called immediately after creation. | |
| void | BlueprintModifyCamera
(
float DeltaTime, |
Called per tick that the modifier is active to allow Blueprinted modifiers to modify the camera's transform. | |
| void | BlueprintModifyPostProcess
(
float DeltaTime, |
Called per tick that the modifier is active to allow Blueprinted modifiers to modify the camera's postprocess effects. | |
| void | DisableModifier
(
bool bImmediate |
Disables this modifier. | |
| void | DisplayDebug
(
UCanvas* Canvas, |
Allows camera modifiers to output debug text during "showdebug camera" | |
| void | Enables this modifier. | ||
| float | |||
| AActor * | |||
| UWorld * | GetWorld () |
||
| bool | IsDisabled () |
||
| bool | |||
| bool | ModifyCamera
(
float DeltaTime, |
Directly modifies variables in the owning camera | |
| void | ModifyCamera
(
float DeltaTime, |
Allows modifying the camera in native code. | |
| void | ModifyPostProcess
(
float DeltaTime, |
Allows modifying the post process in native code. | |
| void | OnCameraOwnerDestroyed
(
AActor* InOwner |
||
| bool | ProcessViewRotation
(
AActor* ViewTarget, |
Called to give modifiers a chance to adjust view rotation updates before they are applied. | |
| void | Toggled disabled/enabled state of this modifier. | ||
| void | UpdateAlpha
(
float DeltaTime |
Responsible for updating alpha blend value. |
See Also
ModifyCamera). A CameraModifier can be stateful
and is associated uniquely with a specific APlayerCameraManager.