Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UCameraShakeBase
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Gets the duration of this camera shake in seconds. | Camera/CameraShakeBase.h | ||
static bool GetCameraShakeDuration
(
TSubclassOf< UCameraShakeBase > CameraShakeClass, |
Gets the default duration for camera shakes of the given class. | Camera/CameraShakeBase.h |
GetCameraShakeDuration()
Description
Gets the duration of this camera shake in seconds.
The value could be 0 or negative if the shake uses the oscillator, meaning, respectively, no oscillation, or indefinite oscillation.
| Name | GetCameraShakeDuration |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Camera/CameraShakeBase.h |
| Include Path | #include "Camera/CameraShakeBase.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Camera/CameraShakeBase.cpp |
FCameraShakeDuration GetCameraShakeDuration() const
GetCameraShakeDuration(TSubclassOf< UCameraShakeBase >, FCameraShakeDuration &)
Description
Gets the default duration for camera shakes of the given class.
| Name | GetCameraShakeDuration |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Camera/CameraShakeBase.h |
| Include Path | #include "Camera/CameraShakeBase.h" |
static bool GetCameraShakeDuration
(
TSubclassOf < UCameraShakeBase > CameraShakeClass,
FCameraShakeDuration & OutDuration
)
Whether a valid default duration was found
Parameters
| Name | Remarks |
|---|---|
| CameraShakeClass | The class of camera shake |
| OutDuration | Will store the default duration of the given camera shake class, if possible |