engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
UMovieScene类 参考

Implements a movie scene asset. 更多...

#include <MovieScene.h>

继承自 UMovieSceneSignedObject .

Public 成员函数

UMovieSceneTrack * AddCameraCutTrack (TSubclassOf< UMovieSceneTrack > TrackClass)
 Adds a new camera cut track if it doesn't exist A camera cut track allows for cutting between camera views There is only one per movie scene. 更多...
 
bool AddGivenMasterTrack (UMovieSceneTrack *InTrack)
 Adds a given track as a master track 更多...
 
bool AddGivenTrack (UMovieSceneTrack *InTrack, const FGuid &ObjectGuid)
 Adds a given track. 更多...
 
template<typename TrackClass >
TrackClass * AddMasterTrack ()
 Adds a master track. 更多...
 
UMovieSceneTrack * AddMasterTrack (TSubclassOf< UMovieSceneTrack > TrackClass)
 Adds a master track. 更多...
 
FGuid AddPossessable (const FString &Name, UClass *Class)
 Adds a possessable to this movie scene. 更多...
 
template<typename TrackClass >
TrackClass * AddTrack (const FGuid &ObjectGuid)
 Adds a track. 更多...
 
UMovieSceneTrack * AddTrack (TSubclassOf< UMovieSceneTrack > TrackClass, const FGuid &ObjectGuid)
 Adds a track. 更多...
 
FMovieSceneBinding * FindBinding (const FGuid &ForGuid)
 Tries to find an FMovieSceneBinding for the specified Guid. 更多...
 
template<typename TrackClass >
TrackClass * FindMasterTrack () const
 Finds a master track (one not bound to a runtime objects). 更多...
 
UMovieSceneTrack * FindMasterTrack (TSubclassOf< UMovieSceneTrack > TrackClass) const
 Finds a master track (one not bound to a runtime objects). 更多...
 
struct FMovieScenePossessable * FindPossessable (const FGuid &Guid)
 Tries to locate a possessable in this MovieScene for the specified possessable GUID. 更多...
 
FMovieScenePossessable * FindPossessable (const TFunctionRef< bool(FMovieScenePossessable &)> &InPredicate)
 Attempt to find a possessable using some custom prdeicate 更多...
 
FMovieSceneSpawnable * FindSpawnable (const FGuid &Guid)
 Tries to locate a spawnable in this MovieScene for the specified spawnable GUID. 更多...
 
FMovieSceneSpawnable * FindSpawnable (const TFunctionRef< bool(FMovieSceneSpawnable &)> &InPredicate)
 Attempt to find a spawnable using some custom predicate 更多...
 
template<typename TrackClass >
TrackClass * FindTrack (const FGuid &ObjectGuid, const FName &TrackName=NAME_None) const
 Finds a track. 更多...
 
UMovieSceneTrack * FindTrack (TSubclassOf< UMovieSceneTrack > TrackClass, const FGuid &ObjectGuid, const FName &TrackName=NAME_None) const
 Finds a track. 更多...
 
bool FindTrackBinding (const UMovieSceneTrack &InTrack, FGuid &OutGuid) const
 Find a track binding Guid from a UMovieSceneTrack 更多...
 
TArray< UMovieSceneSection * > GetAllSections () const
 Returns all sections and their associated binding data. 更多...
 
const TArray< FMovieSceneBinding > & GetBindings () const
 
UMovieSceneTrack * GetCameraCutTrack () const
 
EUpdateClockSource GetClockSource () const
 retrieve the clock source to be used for this moviescene
 
FFrameRate GetDisplayRate () const
 Retrieve the display frame rate for this data, in which frame numbers should be displayed on UI, and interacted with in movie scene players
 
EMovieSceneEvaluationType GetEvaluationType () const
 Retrieve a value signifying how to evaluate this movie scene data
 
const TArray< UMovieSceneTrack * > & GetMasterTracks () const
 Get all master tracks. 更多...
 
FText GetObjectDisplayName (const FGuid &ObjectId)
 Get the display name of the object with the specified identifier. 更多...
 
TRange< FFrameNumber > GetPlaybackRange () const
 Get the playback time range of this movie scene, relative to its 0-time offset.
 
FMovieScenePossessable & GetPossessable (const int32 Index)
 Grabs a reference to a specific possessable by index. 更多...
 
int32 GetPossessableCount () const
 Get the number of possessable objects in this scene. 更多...
 
TRange< FFrameNumber > GetSelectionRange () const
 Get the current selection range.
 
FMovieSceneSpawnable & GetSpawnable (int32 Index)
 Grabs a reference to a specific spawnable by index. 更多...
 
int32 GetSpawnableCount () const
 Get the number of spawnable objects in this scene. 更多...
 
FFrameRate GetTickResolution () const
 Retrieve the tick resolution at which all frame numbers within this movie scene are defined
 
bool IsAMasterTrack (const UMovieSceneTrack &Track) const
 Check whether the specified track is a master track in this scene. 更多...
 
virtual bool IsPostLoadThreadSafe () const override
 Called during async load to determine if PostLoad can be called on the loading thread. 更多...
 
TSharedPtr< FMovieSceneTimeController > MakeCustomTimeController (UObject *PlaybackContext)
 Retrieve a time controller from this sequence instance, if the clock source is set to custom
 
void MoveBindingContents (const FGuid &SourceBindingId, const FGuid &DestinationBindingId)
 Move all the contents (tracks, child bindings) of the specified binding ID onto another 更多...
 
virtual void PostInitProperties () override
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
void RemoveCameraCutTrack ()
 Removes the camera cut track if it exists.
 
bool RemoveMasterTrack (UMovieSceneTrack &Track)
 Removes a master track. 更多...
 
bool RemovePossessable (const FGuid &PossessableGuid)
 Removes a possessable from this movie scene. 更多...
 
bool RemoveTrack (UMovieSceneTrack &Track)
 Removes a track. 更多...
 
virtual void Serialize (FArchive &Ar) override
 ~ UObject implementation
 
void SetClockSource (EUpdateClockSource InNewClockSource)
 Assign the clock source to be used for this moviescene
 
void SetClockSource (UObject *InNewClockSource)
 Assign the clock source to be used for this moviescene
 
void SetDisplayRate (FFrameRate InDisplayRate)
 Set the play rate for this movie scene
 
void SetEvaluationType (EMovieSceneEvaluationType InNewEvaluationType)
 Assign a value signifying how to evaluate this movie scene data
 
void SetPlaybackRange (const TRange< FFrameNumber > &NewRange, bool bAlwaysMarkDirty=true)
 Set the playback range for this movie scene 更多...
 
void SetPlaybackRange (FFrameNumber Start, int32 Duration, bool bAlwaysMarkDirty=true)
 Set the start and end playback positions (playback range) for this movie scene 更多...
 
void SetTickResolutionDirectly (FFrameRate InTickResolution)
 Directly set the tick resolution for this movie scene without applying any conversion whatsoever, or modifying the data
 
void SetViewRange (float Start, float End)
 Set the start and end view range (inner) for this movie scene 更多...
 
void SetWorkingRange (float Start, float End)
 Set the start and end working range (outer) for this movie scene 更多...
 

Protected 成员函数

virtual void PreSave (const class ITargetPlatform *TargetPlatform) override
 Called before this object is being deserialized.
 
void RemoveBinding (const FGuid &Guid)
 Removes animation data bound to a GUID. 更多...
 
void UpgradeTimeRanges ()
 Perform legacy upgrade of time ranges
 

详细描述

Implements a movie scene asset.

成员函数说明

◆ AddCameraCutTrack()

UMovieSceneTrack * UMovieScene::AddCameraCutTrack ( TSubclassOf< UMovieSceneTrack >  TrackClass)

Adds a new camera cut track if it doesn't exist A camera cut track allows for cutting between camera views There is only one per movie scene.

参数
TrackClassThe camera cut track class type
返回
The created camera cut track

◆ AddGivenMasterTrack()

bool UMovieScene::AddGivenMasterTrack ( UMovieSceneTrack *  InTrack)

Adds a given track as a master track

参数
InTrackThe track to add.
参见
FindTrack, RemoveTrack
返回
true if the track is successfully added, false otherwise.

◆ AddGivenTrack()

bool UMovieScene::AddGivenTrack ( UMovieSceneTrack *  InTrack,
const FGuid &  ObjectGuid 
)

Adds a given track.

参数
InTrackThe track to add.
ObjectGuidThe runtime object guid that the type should bind to
参见
FindTrack, RemoveTrack
返回
true if the track is successfully added, false otherwise.

◆ AddMasterTrack() [1/2]

template<typename TrackClass >
TrackClass * UMovieScene::AddMasterTrack ( )
inline

Adds a master track.

Note: The type should not already exist.

参数
TrackClassThe class of the track to create
TypeThe newly created type
参见
FindMasterTrack, GetMasterTracks, IsMasterTrack, RemoveMasterTrack

◆ AddMasterTrack() [2/2]

UMovieSceneTrack * UMovieScene::AddMasterTrack ( TSubclassOf< UMovieSceneTrack >  TrackClass)

Adds a master track.

Note: The type should not already exist.

参数
TrackClassThe class of the track to create
TypeThe newly created type
参见
FindMasterTrack, GetMasterTracks, IsMasterTrack, RemoveMasterTrack

◆ AddPossessable()

FGuid UMovieScene::AddPossessable ( const FString &  Name,
UClass *  Class 
)

Adds a possessable to this movie scene.

参数
NameName of the possessable.
ClassThe class of object that will be possessed.
返回
Guid of the newly-added possessable.

◆ AddTrack() [1/2]

template<typename TrackClass >
TrackClass * UMovieScene::AddTrack ( const FGuid &  ObjectGuid)
inline

Adds a track.

Note: The type should not already exist.

参数
TrackClassThe class of the track to create.
ObjectGuidThe runtime object guid that the type should bind to.
TypeThe newly created type.
参见
FindTrack, RemoveTrack

◆ AddTrack() [2/2]

UMovieSceneTrack * UMovieScene::AddTrack ( TSubclassOf< UMovieSceneTrack >  TrackClass,
const FGuid &  ObjectGuid 
)

Adds a track.

Note: The type should not already exist.

参数
TrackClassThe class of the track to create.
ObjectGuidThe runtime object guid that the type should bind to.
TypeThe newly created type.
参见
FindTrack, RemoveTrack

◆ FindBinding()

FMovieSceneBinding * UMovieScene::FindBinding ( const FGuid &  ForGuid)
inline

Tries to find an FMovieSceneBinding for the specified Guid.

参数
ForGuidThe binding's Guid to look for.
返回
Pointer to the binding, otherwise nullptr.

◆ FindMasterTrack() [1/2]

template<typename TrackClass >
TrackClass * UMovieScene::FindMasterTrack ( ) const
inline

Finds a master track (one not bound to a runtime objects).

参数
TrackClassThe class of the track to find.
返回
The found track or nullptr if one does not exist.
参见
AddMasterTrack, GetMasterTracks, IsMasterTrack, RemoveMasterTrack

◆ FindMasterTrack() [2/2]

UMovieSceneTrack * UMovieScene::FindMasterTrack ( TSubclassOf< UMovieSceneTrack >  TrackClass) const

Finds a master track (one not bound to a runtime objects).

参数
TrackClassThe class of the track to find.
返回
The found track or nullptr if one does not exist.
参见
AddMasterTrack, GetMasterTracks, IsMasterTrack, RemoveMasterTrack

◆ FindPossessable() [1/2]

struct FMovieScenePossessable * UMovieScene::FindPossessable ( const FGuid &  Guid)

Tries to locate a possessable in this MovieScene for the specified possessable GUID.

参数
GuidThe possessable guid to search for.
返回
Possessable object that was found (or nullptr if not found).

◆ FindPossessable() [2/2]

FMovieScenePossessable * UMovieScene::FindPossessable ( const TFunctionRef< bool(FMovieScenePossessable &)> &  InPredicate)

Attempt to find a possessable using some custom prdeicate

参数
InPredicateA predicate to test each possessable against
返回
Possessable object that was found (or nullptr if not found).

◆ FindSpawnable() [1/2]

FMovieSceneSpawnable * UMovieScene::FindSpawnable ( const FGuid &  Guid)

Tries to locate a spawnable in this MovieScene for the specified spawnable GUID.

参数
GuidThe spawnable guid to search for.
返回
Spawnable object that was found (or nullptr if not found).

◆ FindSpawnable() [2/2]

FMovieSceneSpawnable * UMovieScene::FindSpawnable ( const TFunctionRef< bool(FMovieSceneSpawnable &)> &  InPredicate)

Attempt to find a spawnable using some custom predicate

参数
InPredicateA predicate to test each spawnable against
返回
Spawnable object that was found (or nullptr if not found).

◆ FindTrack() [1/2]

template<typename TrackClass >
TrackClass * UMovieScene::FindTrack ( const FGuid &  ObjectGuid,
const FName &  TrackName = NAME_None 
) const
inline

Finds a track.

参数
TrackClassThe class of the track to find.
ObjectGuidThe runtime object guid that the track is bound to.
TrackNameThe name of the track to differentiate the one we are searching for from other tracks of the same class (optional).
返回
The found track or nullptr if one does not exist.
参见
AddTrack, RemoveTrack

◆ FindTrack() [2/2]

UMovieSceneTrack * UMovieScene::FindTrack ( TSubclassOf< UMovieSceneTrack >  TrackClass,
const FGuid &  ObjectGuid,
const FName &  TrackName = NAME_None 
) const

Finds a track.

参数
TrackClassThe class of the track to find.
ObjectGuidThe runtime object guid that the track is bound to.
TrackNameThe name of the track to differentiate the one we are searching for from other tracks of the same class (optional).
返回
The found track or nullptr if one does not exist.
参见
AddTrack, RemoveTrack

◆ FindTrackBinding()

bool UMovieScene::FindTrackBinding ( const UMovieSceneTrack &  InTrack,
FGuid &  OutGuid 
) const

Find a track binding Guid from a UMovieSceneTrack

参数
InTrackThe track to find the binding for.
OutGuidThe binding's Guid if one was found.
返回
true if a binding was found for this track.

◆ GetAllSections()

TArray< UMovieSceneSection * > UMovieScene::GetAllSections ( ) const

Returns all sections and their associated binding data.

返回
A list of sections with object bindings and names.

◆ GetBindings()

const TArray< FMovieSceneBinding > & UMovieScene::GetBindings ( ) const
inline
返回
All object bindings.

◆ GetCameraCutTrack()

UMovieSceneTrack * UMovieScene::GetCameraCutTrack ( ) const
返回
The camera cut track if it exists.

◆ GetMasterTracks()

const TArray< UMovieSceneTrack * > & UMovieScene::GetMasterTracks ( ) const
inline

Get all master tracks.

返回
Track collection.
参见
AddMasterTrack, FindMasterTrack, IsMasterTrack, RemoveMasterTrack

◆ GetObjectDisplayName()

FText UMovieScene::GetObjectDisplayName ( const FGuid &  ObjectId)

Get the display name of the object with the specified identifier.

参数
ObjectIdThe object identifier.
返回
The object's display name.

◆ GetPossessable()

FMovieScenePossessable & UMovieScene::GetPossessable ( const int32  Index)

Grabs a reference to a specific possessable by index.

参数
Indexof possessable to return.
返回
Returns the specified possessable by index.

◆ GetPossessableCount()

int32 UMovieScene::GetPossessableCount ( ) const

Get the number of possessable objects in this scene.

返回
Possessable object count.

◆ GetSpawnable()

FMovieSceneSpawnable & UMovieScene::GetSpawnable ( int32  Index)

Grabs a reference to a specific spawnable by index.

参数
Indexof spawnable to return. Must be between 0 and GetSpawnableCount()
返回
Returns the specified spawnable by index.

◆ GetSpawnableCount()

int32 UMovieScene::GetSpawnableCount ( ) const

Get the number of spawnable objects in this scene.

返回
Spawnable object count.

◆ IsAMasterTrack()

bool UMovieScene::IsAMasterTrack ( const UMovieSceneTrack &  Track) const

Check whether the specified track is a master track in this scene.

返回
true if the track is a master track, false otherwise.
参见
AddMasterTrack, FindMasterTrack, GetMasterTracks, RemoveMasterTrack

◆ IsPostLoadThreadSafe()

virtual bool UMovieScene::IsPostLoadThreadSafe ( ) const
overridevirtual

Called during async load to determine if PostLoad can be called on the loading thread.

返回
true if this object's PostLoad is thread safe

重载 UObject .

◆ MoveBindingContents()

void UMovieScene::MoveBindingContents ( const FGuid &  SourceBindingId,
const FGuid &  DestinationBindingId 
)

Move all the contents (tracks, child bindings) of the specified binding ID onto another

参数
SourceBindingIdThe identifier of the binding ID to move all tracks and children from
DestinationBindingIdThe identifier of the binding ID to move the contents to

◆ PostInitProperties()

virtual void UMovieScene::PostInitProperties ( )
overridevirtual

Called after the C++ constructor and after the properties have been initialized, including those loaded from config.

This is called before any serialization or other setup has happened.

重载 UObject .

◆ PostLoad()

virtual void UMovieScene::PostLoad ( )
overridevirtual

Do any object-specific cleanup required immediately after loading an object.

This is not called for newly-created objects, and by default will always execute on the game thread.

重载 UObject .

◆ RemoveBinding()

void UMovieScene::RemoveBinding ( const FGuid &  Guid)
protected

Removes animation data bound to a GUID.

参数
GuidThe guid bound to animation data to remove

◆ RemoveMasterTrack()

bool UMovieScene::RemoveMasterTrack ( UMovieSceneTrack &  Track)

Removes a master track.

参数
TrackThe track to remove.
返回
true if anything was removed.
参见
AddMasterTrack, FindMasterTrack, GetMasterTracks, IsMasterTrack

◆ RemovePossessable()

bool UMovieScene::RemovePossessable ( const FGuid &  PossessableGuid)

Removes a possessable from this movie scene.

参数
PossessableGuidGuid of possessable to remove.

◆ RemoveTrack()

bool UMovieScene::RemoveTrack ( UMovieSceneTrack &  Track)

Removes a track.

参数
TrackThe track to remove.
返回
true if anything was removed.
参见
AddTrack, FindTrack

◆ SetPlaybackRange() [1/2]

void UMovieScene::SetPlaybackRange ( const TRange< FFrameNumber > &  NewRange,
bool  bAlwaysMarkDirty = true 
)

Set the playback range for this movie scene

参数
RangeThe new playback range. Must not have any open bounds (ie must be a finite range)
bAlwaysMarkDirtyWhether to always mark the playback range dirty when changing it. In the case where the playback range is dynamic and based on section bounds, the playback range doesn't need to be dirtied when set

◆ SetPlaybackRange() [2/2]

void UMovieScene::SetPlaybackRange ( FFrameNumber  Start,
int32  Duration,
bool  bAlwaysMarkDirty = true 
)

Set the start and end playback positions (playback range) for this movie scene

参数
StartThe offset from 0-time to start playback of this movie scene
DurationThe number of frames the movie scene should play for
bAlwaysMarkDirtyWhether to always mark the playback range dirty when changing it. In the case where the playback range is dynamic and based on section bounds, the playback range doesn't need to be dirtied when set

◆ SetViewRange()

void UMovieScene::SetViewRange ( float  Start,
float  End 
)

Set the start and end view range (inner) for this movie scene

参数
StartThe offset from 0-time to view this movie scene
EndThe offset from 0-time to view this movie scene

◆ SetWorkingRange()

void UMovieScene::SetWorkingRange ( float  Start,
float  End 
)

Set the start and end working range (outer) for this movie scene

参数
StartThe offset from 0-time to view this movie scene.
EndThe offset from 0-time to view this movie scene

该类的文档由以下文件生成: