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 更多... | |
Saved state for animation bound to a particular animated object
| 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.
| 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
| InCaptureMode | Whether to capture for the specified associated key, globally, or not at all |
| InAnimTypeID | ID that uniquely iudentifies the type of animation token to store |
| InAssociatedKey | When InCaptureMode == ECapturePreAnimatedState::Entity, defines the entity that is attempting to save the token |
| InProducer | The producer responsible for creating the token, if necessary |
| InParent | The pre animated state container that is making this request |
| void TMovieSceneSavedTokens< TokenType >::Restore | ( | IMovieScenePlayer & | Player | ) |
Forcefully restore all pre animated state tokens held by this container
| Player | Movie scene player that is restoring the tokens |
| 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
| Player | Movie scene player that is restoring the tokens |
| InFilter | Filter predicate that, when true, will restore tokens based on their animation type identifier |
| 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
| Player | The movie scene player responsible for playing back the sequence |
| EntityKey | A key for the specific entity (section or track) to restore data for |
| InFilter | (optional) Filter that can optionally include/exclude specific types of animation |