Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Camera
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCameraModifier
- UCameraModifier_CameraShake
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Camera/CameraModifier_CameraShake.h |
Include | #include "Camera/CameraModifier_CameraShake.h" |
Syntax
class UCameraModifier_CameraShake : public UCameraModifier
Remarks
A UCameraModifier_CameraShake is a camera modifier that can apply a UCameraShakeBase to the owning camera.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< FActiveCameraShakeInfo > | ActiveShakes | List of active CameraShake instances |
![]() |
bool | bRecordDebugData | Whether we are currently recording camera shake debug info |
![]() |
TArray< FCameraShakeDebugData > | DebugShakes | List of debug data for camera shakes |
![]() |
TMap< TSubclassOf< UCameraShakeBase >, FPooledCameraShakes > | ExpiredPooledShakesMap | |
![]() |
float | SplitScreenShakeScale | Scaling factor applied to all camera shakes in when in splitscreen mode. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UCameraModifier_CameraShake
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
UCameraShakeBase * | AddCameraShake
(
TSubclassOf< UCameraShakeBase > NewShake, |
Adds a new active screen shake to be applied. |
![]() |
void | AddCameraShakeDebugData
(
FActiveCameraShakeInfo& ShakeInfo |
|
![]() |
void | DisplayDebugGraphs
(
UCanvas* Canvas, |
|
![]() ![]() ![]() |
void | GetActiveCameraShakes
(
TArray< FActiveCameraShakeInfo >& ActiveCameraShakes |
Returns a list of currently active camera shakes. |
![]() |
UCameraShakeBase * | ReclaimShakeFromExpiredPool
(
TSubclassOf< UCameraShakeBase > CameraShakeClass |
|
![]() ![]() |
void | RemoveAllCameraShakes
(
bool bImmediately |
Stops and removes all camera shakes from the camera. |
![]() ![]() |
void | RemoveAllCameraShakesFromSource
(
const UCameraShakeSourceComponent* SourceComponent, |
Stops and removes all camera shakes originating from the given source. |
![]() ![]() |
void | RemoveAllCameraShakesOfClass
(
TSubclassOf< UCameraShakeBase > ShakeClass, |
Stops and removes all camera shakes of the given class from the camera. |
![]() ![]() |
void | RemoveAllCameraShakesOfClassFromSource
(
TSubclassOf< UCameraShakeBase > ShakeClass, |
Stops and removes all camera shakes of the given class originating from the given source. |
![]() ![]() |
void | RemoveCameraShake
(
UCameraShakeBase* ShakeInst, |
Stops and removes the camera shake of the given class from the camera. |
![]() |
void | RemoveCameraShakeDebugData
(
const FActiveCameraShakeInfo& ShakeInfo |
|
![]() |
void | SaveShakeInExpiredPool
(
UCameraShakeBase* ShakeInst |
|
![]() |
void | SaveShakeInExpiredPoolIfPossible
(
const FActiveCameraShakeInfo& ShakeInfo |
Overridden from UCameraModifier
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | DisplayDebug
(
UCanvas* Canvas, |
Allows camera modifiers to output debug text during "showdebug camera" |
![]() ![]() |
bool | ModifyCamera
(
float DeltaTime, |
Directly modifies variables in the owning camera |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BeginDestroy () |
Called before destroying the object. |