Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Camera
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Camera/CameraShakeBase.h |
| Include | #include "Camera/CameraShakeBase.h" |
Syntax
struct FCameraShakeState
Remarks
Transitive state of a shake or shake pattern.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Create a new camera shake state |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | Returns the current time into the blend in (only valid if IsBlendingIn() returns true) | ||
| float | Returns the current time into the blend in (only valid if IsBlendingOut() returns true) | ||
| float | GetDuration () |
Helper method to get GetShakeInfo().Duration.Get() | |
| float | Returns the elapsed time of the shake's current run | ||
| const FCameraShakeInfo & | GetShakeInfo () |
Returns the current shake info | |
| bool | HasDuration () |
Helper method to get GetShakeInfo().Duration.IsFixed() | |
| bool | IsBlendingIn () |
Returns whether the shake is blending in | |
| bool | Returns whether the shake is blending out | ||
| bool | IsInfinite () |
Helper method to get GetShakeInfo().Duration.IsInifnite() | |
| bool | IsPlaying () |
Returns whether the shake is playing | |
| float | Scrub
(
float AbsoluteTime |
Scrub the state to the given absolute time. | |
| void | Start
(
const FCameraShakeInfo& InShakeInfo |
Initialize the state with a shake's info and start playing. | |
| void | Start
(
const UCameraShakePattern* InShakePattern |
Initialize the state with a shake's info and start playing. | |
| void | Stop
(
bool bImmediately |
Marks the shake has having been stopped. | |
| float | Update
(
float DeltaTime |
Updates the state with a delta time. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize
(
const FCameraShakeInfo& InShakeInfo |
Please use Start | |
| bool | IsActive () |
Please use IsPlaying |