UCameraShakeBase::GetCameraShakeDuration

Gets the default duration for camera shakes of the given class.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Camera/CameraShakeBase.h

Include

#include "Camera/CameraShakeBase.h"

Syntax

static bool GetCameraShakeDuration
(
    TSubclassOf< UCameraShakeBase > CameraShakeClass,
    FCameraShakeDuration & OutDuration
)

Remarks

Gets the default duration for camera shakes of the given class.

Returns

Whether a valid default duration was found

Parameters

Parameter

Description

CameraShakeClass

The class of camera shake

OutDuration

Will store the default duration of the given camera shake class, if possible