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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback