IMovieScenePlayer::SavePreAnimatedState

Attempt to save specific state for the specified token state before it animates an object.

Choose your operating system:

Windows

macOS

Linux

References

Module

MovieScene

Header

/Engine/Source/Runtime/MovieScene/Public/IMovieScenePlayer.h

Include

#include "IMovieScenePlayer.h"

Syntax

void SavePreAnimatedState
(
    UObject & InObject,
    FMovieSceneAnimTypeID InTokenType,
    const IMovieScenePreAnimatedTokenProducer & InProducer
)

Remarks

Attempt to save specific state for the specified token state before it animates an object. @note Will only call IMovieSceneExecutionToken::CacheExistingState if no state has been previously cached for the specified token type

Parameters

Parameter

Description

InObject

The object to cache state for

InTokenType

Unique marker that identifies the originating token type

InProducer

Producer implementation that defines how to create the preanimated token, if it doesn't already exist