APlayerCameraManager::PlayCameraAnim

CameraAnim support. Play the indicated CameraAnim 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 UCameraAnimInst * PlayCameraAnim
(
    class UCameraAnim * Anim,
    float Rate,
    float Scale,
    float BlendInTime,
    float BlendOutTime,
    bool bLoop,
    bool bRandomStartTime,
    float Duration,
    ECameraAnimPlaySpace::Type PlaySpace,
    FRotator UserPlaySpaceRot
)

Remarks

CameraAnim support. Play the indicated CameraAnim on this camera.

Returns

The CameraAnim instance, which can be stored to manipulate/stop the anim after the fact.

Parameters

Parameter

Description

Anim

The animation that should play on this instance.

Rate

How fast to play the animation. 1.0 is normal.

Scale

How "intense" to play the animation. 1.0 is normal.

BlendInTime

Time to linearly ramp in.

BlendOutTime

Time to linearly ramp out.

bLoop

True to loop the animation if it hits the end.

bRandomStartTime

Whether or not to choose a random time to start playing. Useful with bLoop=true and a duration to randomize things like shakes.

Duration

Optional total playtime for this animation, including blends. 0 means to use animations natural duration, or infinite if looping.

PlaySpace

Which space to play the animation in.

UserPlaySpaceRot

Custom play space, used when PlaySpace is 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