engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TMovieSceneSavedTokens< TokenType > 模板结构体 参考

Saved state for animation bound to a particular animated object 更多...

#include <MovieScenePreAnimatedState.h>

Public 成员函数

void DiscardEntityTokens ()
 Discard any tokens that relate to entity animation (ie sections or tracks) without restoring the values. 更多...
 
void OnPreAnimated (ECapturePreAnimatedState InCaptureMode, FMovieSceneAnimTypeID InAnimTypeID, FMovieSceneEvaluationKey InAssociatedKey, const ProducerType &InProducer, FMovieScenePreAnimatedState &InParent)
 Called when animation is about to happen to cache of any existing state 更多...
 
void Reset ()
 Reset all containers without applying or restoring any tokens
 
void Restore (IMovieScenePlayer &Player)
 Forcefully restore all pre animated state tokens held by this container 更多...
 
void Restore (IMovieScenePlayer &Player, TFunctionRef< bool(FMovieSceneAnimTypeID)> InFilter)
 Restore all pre animated state tokens held by this container that pass the specified filter predicate 更多...
 
bool RestoreEntity (IMovieScenePlayer &Player, FMovieSceneEvaluationKey EntityKey, TOptional< TFunctionRef< bool(FMovieSceneAnimTypeID)> > InFilter=TOptional< TFunctionRef< bool(FMovieSceneAnimTypeID)> >())
 Restore any pre animated state for the specified entity key, based on an optional filter 更多...
 

详细描述

template<typename TokenType>
struct TMovieSceneSavedTokens< TokenType >

Saved state for animation bound to a particular animated object

成员函数说明

◆ DiscardEntityTokens()

template<typename TokenType >
void TMovieSceneSavedTokens< TokenType >::DiscardEntityTokens ( )

Discard any tokens that relate to entity animation (ie sections or tracks) without restoring the values.

Any global pre-animated state tokens (that reset the animation when saving a map, for instance) will remain.

◆ OnPreAnimated()

template<typename TokenType >
void TMovieSceneSavedTokens< TokenType >::OnPreAnimated ( ECapturePreAnimatedState  InCaptureMode,
FMovieSceneAnimTypeID  InAnimTypeID,
FMovieSceneEvaluationKey  InAssociatedKey,
const ProducerType &  InProducer,
FMovieScenePreAnimatedState &  InParent 
)

Called when animation is about to happen to cache of any existing state

参数
InCaptureModeWhether to capture for the specified associated key, globally, or not at all
InAnimTypeIDID that uniquely iudentifies the type of animation token to store
InAssociatedKeyWhen InCaptureMode == ECapturePreAnimatedState::Entity, defines the entity that is attempting to save the token
InProducerThe producer responsible for creating the token, if necessary
InParentThe pre animated state container that is making this request

◆ Restore() [1/2]

template<typename TokenType >
void TMovieSceneSavedTokens< TokenType >::Restore ( IMovieScenePlayer &  Player)

Forcefully restore all pre animated state tokens held by this container

参数
PlayerMovie scene player that is restoring the tokens

◆ Restore() [2/2]

template<typename TokenType >
void TMovieSceneSavedTokens< TokenType >::Restore ( IMovieScenePlayer &  Player,
TFunctionRef< bool(FMovieSceneAnimTypeID)>  InFilter 
)

Restore all pre animated state tokens held by this container that pass the specified filter predicate

参数
PlayerMovie scene player that is restoring the tokens
InFilterFilter predicate that, when true, will restore tokens based on their animation type identifier

◆ RestoreEntity()

template<typename TokenType >
bool TMovieSceneSavedTokens< TokenType >::RestoreEntity ( IMovieScenePlayer &  Player,
FMovieSceneEvaluationKey  EntityKey,
TOptional< TFunctionRef< bool(FMovieSceneAnimTypeID)> >  InFilter = TOptional< TFunctionRef< bool(FMovieSceneAnimTypeID)> >() 
)

Restore any pre animated state for the specified entity key, based on an optional filter

参数
PlayerThe movie scene player responsible for playing back the sequence
EntityKeyA key for the specific entity (section or track) to restore data for
InFilter(optional) Filter that can optionally include/exclude specific types of animation
返回
True if the entity's pre-animated state was entirely restored, false if some state remains (ie, if it failed the filter)

该结构体的文档由以下文件生成: