Navigation
API > API/Runtime > API/Runtime/Engine
Camera shake duration.
| Name | FCameraShakeDuration |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Classes/Camera/CameraShakeBase.h |
| Include Path | #include "Camera/CameraShakeBase.h" |
Syntax
USTRUCT (BlueprintType )
struct FCameraShakeDuration
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Creates a new shake duration | Camera/CameraShakeBase.h | ||
FCameraShakeDuration
(
float InDuration, |
Creates a new shake duration | Camera/CameraShakeBase.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Duration | float | Camera/CameraShakeBase.h | ||
| Type | ECameraShakeDurationType | Camera/CameraShakeBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float Get() |
When the duration is fixed, return the duration time | Camera/CameraShakeBase.h | |
ECameraShakeDurationType GetDurationType() |
Returns the duration type | Camera/CameraShakeBase.h | |
bool IsCustom() |
Returns whether this duration is custom | Camera/CameraShakeBase.h | |
bool IsCustomWithHint() |
Returns whether this duration is custom, but with a valid effective duration hint | Camera/CameraShakeBase.h | |
bool IsFixed() |
Returns whether this duration is a fixed time | Camera/CameraShakeBase.h | |
bool IsInfinite() |
Returns whether this duration is infinite | Camera/CameraShakeBase.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FCameraShakeDuration Custom () |
Returns a custom shake duration | Camera/CameraShakeBase.h | |
static FCameraShakeDuration Custom
(
float DurationHint |
Returns a custom shake duration with a hint for how long the shake might be | Camera/CameraShakeBase.h | |
static FCameraShakeDuration Infinite() |
Returns an infinite shake duration | Camera/CameraShakeBase.h |