APlayerCameraManager::StartCameraShakeFromSource

Plays a camera shake on this camera.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "Camera/PlayerCameraManager.h"

Source

/Engine/Source/Runtime/Engine/Private/PlayerCameraManager.cpp

Syntax

virtual UCameraShakeBase * StartCameraShakeFromSource
(
    TSubclassOf< UCameraShakeBase > ShakeClass,
    UCameraShakeSourceComponent * SourceComponent,
    float Scale,
    ECameraShakePlaySpace PlaySpace,
    FRotator UserPlaySpaceRot
)

Remarks

Plays a camera shake on this camera.

Parameters

Parameter

Description

Shake

The class of camera shake to play.

SourceComponent

The source from which the camera shake originates.

Scale

Applies an additional constant scale on top of the dynamic scale computed with the distance to the source

PlaySpace

Which coordinate system to play the shake in (affects oscillations and camera anims)

UserPlaySpaceRot

Coordinate system to play shake when PlaySpace == CAPS_UserDefined.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss