engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FMovieSceneObjectCache结构体 参考

Object cache that looks up, resolves, and caches object bindings for a specific sequence 更多...

#include <MovieSceneEvaluationState.h>

Public 成员函数

void Clear (IMovieScenePlayer &Player)
 Completely erase all knowledge of, anc caches for all object bindings
 
void FilterObjectBindings (UObject *PredicateObject, IMovieScenePlayer &Player, TArray< FMovieSceneObjectBindingID > *OutBindings)
 Filter all the object bindings in this object cache that contain the specified predicate object 更多...
 
MOVIESCENE_API TArrayView< TWeakObjectPtr<> > FindBoundObjects (const FGuid &InBindingID, IMovieScenePlayer &Player)
 Find all objects that are bound to the specified binding ID 更多...
 
MOVIESCENE_API FGuid FindCachedObjectId (UObject &InObject, IMovieScenePlayer &Player)
 Attempt deduce the posessable or spawnable that relates to the specified object 更多...
 
MOVIESCENE_API FGuid FindObjectId (UObject &InObject, IMovieScenePlayer &Player)
 Attempt deduce the posessable or spawnable that relates to the specified object 更多...
 
UMovieSceneSequence * GetSequence () const
 Get the sequence that this cache relates to
 
MOVIESCENE_API void Invalidate (const FGuid &InGuid)
 Invalidate the object bindings for a specific object binding ID 更多...
 
MOVIESCENE_API void InvalidateExpiredObjects ()
 Invalidate any object bindings for objects that have been destroyed
 
MOVIESCENE_API void InvalidateIfValid (const FGuid &InGuid)
 Invalidate the object bindings for a specific object binding ID if they are not already invalidated 更多...
 
MOVIESCENE_API TArrayView< const TWeakObjectPtr<> > IterateBoundObjects (const FGuid &InBindingID) const
 Find all objects that are bound to the specified binding ID 更多...
 
MOVIESCENE_API void SetSequence (UMovieSceneSequence &InSequence, FMovieSceneSequenceIDRef InSequenceID, IMovieScenePlayer &Player)
 Set the sequence that this cache applies to 更多...
 

Public 属性

FOnBindingInvalidated OnBindingInvalidated
 Invoked when a binding is either explicitly invalidated (as a result of a spawnable being spawned, or a binding override being added) or when a previously resolved binding becomes invalid
 

详细描述

Object cache that looks up, resolves, and caches object bindings for a specific sequence

成员函数说明

◆ FilterObjectBindings()

void FMovieSceneObjectCache::FilterObjectBindings ( UObject *  PredicateObject,
IMovieScenePlayer &  Player,
TArray< FMovieSceneObjectBindingID > *  OutBindings 
)

Filter all the object bindings in this object cache that contain the specified predicate object

参数
PredicateObjectThe object to filter by. Any bindings referencing this object will be added to the output array.
PlayerThe movie scene player that is playing back the sequence
OutBindings(mandatory) Array to populate with bindings that relate to the object

◆ FindBoundObjects()

MOVIESCENE_API TArrayView< TWeakObjectPtr<> > FMovieSceneObjectCache::FindBoundObjects ( const FGuid &  InBindingID,
IMovieScenePlayer &  Player 
)

Find all objects that are bound to the specified binding ID

注解
Will look up, and cache any objects if the cache has been invalidated
参数
InBindingIDThe object binding GUID for a spawnable or posessable in a UMovieScene
PlayerThe movie scene player that is playing back the sequence
返回
An iterable type of all objects bound to the specified ID.

◆ FindCachedObjectId()

MOVIESCENE_API FGuid FMovieSceneObjectCache::FindCachedObjectId ( UObject &  InObject,
IMovieScenePlayer &  Player 
)

Attempt deduce the posessable or spawnable that relates to the specified object

注解
Does not clear the existing cache
参数
InObjectThe object whose binding ID is to be find
PlayerThe movie scene player that is playing back the sequence
返回
The object's spawnable or possessable GUID, or a zero GUID if it was not found

◆ FindObjectId()

MOVIESCENE_API FGuid FMovieSceneObjectCache::FindObjectId ( UObject &  InObject,
IMovieScenePlayer &  Player 
)

Attempt deduce the posessable or spawnable that relates to the specified object

注解
Will forcably resolve any out of date bindings in the entire sequence
参数
InObjectThe object whose binding ID is to be find
PlayerThe movie scene player that is playing back the sequence
返回
The object's spawnable or possessable GUID, or a zero GUID if it was not found

◆ Invalidate()

MOVIESCENE_API void FMovieSceneObjectCache::Invalidate ( const FGuid &  InGuid)

Invalidate the object bindings for a specific object binding ID

参数
InGuidThe object binding ID to invalidate bindings for

◆ InvalidateIfValid()

MOVIESCENE_API void FMovieSceneObjectCache::InvalidateIfValid ( const FGuid &  InGuid)

Invalidate the object bindings for a specific object binding ID if they are not already invalidated

参数
InGuidThe object binding ID to invalidate bindings for

◆ IterateBoundObjects()

MOVIESCENE_API TArrayView< const TWeakObjectPtr<> > FMovieSceneObjectCache::IterateBoundObjects ( const FGuid &  InBindingID) const

Find all objects that are bound to the specified binding ID

注解
Does not update bindings if they are out of date, or invalid
参数
InBindingIDThe object binding GUID for a spawnable or posessable in a UMovieScene
返回
An iterable type of all objects bound to the specified ID.

◆ SetSequence()

MOVIESCENE_API void FMovieSceneObjectCache::SetSequence ( UMovieSceneSequence &  InSequence,
FMovieSceneSequenceIDRef  InSequenceID,
IMovieScenePlayer &  Player 
)

Set the sequence that this cache applies to

参数
InSequenceThe sequence that this cache applies to
InSequenceIDThe ID of the sequence within the master sequence

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