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.
| 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.
| TrackClass | The camera cut track class type |
| bool UMovieScene::AddGivenMasterTrack | ( | UMovieSceneTrack * | InTrack | ) |
Adds a given track as a master track
| InTrack | The track to add. |
| bool UMovieScene::AddGivenTrack | ( | UMovieSceneTrack * | InTrack, |
| const FGuid & | ObjectGuid | ||
| ) |
Adds a given track.
| InTrack | The track to add. |
| ObjectGuid | The runtime object guid that the type should bind to |
|
inline |
Adds a master track.
Note: The type should not already exist.
| TrackClass | The class of the track to create |
| Type | The newly created type |
| UMovieSceneTrack * UMovieScene::AddMasterTrack | ( | TSubclassOf< UMovieSceneTrack > | TrackClass | ) |
Adds a master track.
Note: The type should not already exist.
| TrackClass | The class of the track to create |
| Type | The newly created type |
Adds a possessable to this movie scene.
| Name | Name of the possessable. |
| Class | The class of object that will be possessed. |
|
inline |
Adds a track.
Note: The type should not already exist.
| TrackClass | The class of the track to create. |
| ObjectGuid | The runtime object guid that the type should bind to. |
| Type | The newly created type. |
| UMovieSceneTrack * UMovieScene::AddTrack | ( | TSubclassOf< UMovieSceneTrack > | TrackClass, |
| const FGuid & | ObjectGuid | ||
| ) |
Adds a track.
Note: The type should not already exist.
| TrackClass | The class of the track to create. |
| ObjectGuid | The runtime object guid that the type should bind to. |
| Type | The newly created type. |
|
inline |
Tries to find an FMovieSceneBinding for the specified Guid.
| ForGuid | The binding's Guid to look for. |
|
inline |
Finds a master track (one not bound to a runtime objects).
| TrackClass | The class of the track to find. |
| UMovieSceneTrack * UMovieScene::FindMasterTrack | ( | TSubclassOf< UMovieSceneTrack > | TrackClass | ) | const |
Finds a master track (one not bound to a runtime objects).
| TrackClass | The class of the track to find. |
| struct FMovieScenePossessable * UMovieScene::FindPossessable | ( | const FGuid & | Guid | ) |
Tries to locate a possessable in this MovieScene for the specified possessable GUID.
| Guid | The possessable guid to search for. |
| FMovieScenePossessable * UMovieScene::FindPossessable | ( | const TFunctionRef< bool(FMovieScenePossessable &)> & | InPredicate | ) |
Attempt to find a possessable using some custom prdeicate
| InPredicate | A predicate to test each possessable against |
| FMovieSceneSpawnable * UMovieScene::FindSpawnable | ( | const FGuid & | Guid | ) |
Tries to locate a spawnable in this MovieScene for the specified spawnable GUID.
| Guid | The spawnable guid to search for. |
| FMovieSceneSpawnable * UMovieScene::FindSpawnable | ( | const TFunctionRef< bool(FMovieSceneSpawnable &)> & | InPredicate | ) |
Attempt to find a spawnable using some custom predicate
| InPredicate | A predicate to test each spawnable against |
|
inline |
Finds a track.
| TrackClass | The class of the track to find. |
| ObjectGuid | The runtime object guid that the track is bound to. |
| TrackName | The name of the track to differentiate the one we are searching for from other tracks of the same class (optional). |
| UMovieSceneTrack * UMovieScene::FindTrack | ( | TSubclassOf< UMovieSceneTrack > | TrackClass, |
| const FGuid & | ObjectGuid, | ||
| const FName & | TrackName = NAME_None |
||
| ) | const |
Finds a track.
| TrackClass | The class of the track to find. |
| ObjectGuid | The runtime object guid that the track is bound to. |
| TrackName | The name of the track to differentiate the one we are searching for from other tracks of the same class (optional). |
| bool UMovieScene::FindTrackBinding | ( | const UMovieSceneTrack & | InTrack, |
| FGuid & | OutGuid | ||
| ) | const |
Find a track binding Guid from a UMovieSceneTrack
| InTrack | The track to find the binding for. |
| OutGuid | The binding's Guid if one was found. |
| TArray< UMovieSceneSection * > UMovieScene::GetAllSections | ( | ) | const |
Returns all sections and their associated binding data.
|
inline |
| UMovieSceneTrack * UMovieScene::GetCameraCutTrack | ( | ) | const |
|
inline |
Get all master tracks.
| FText UMovieScene::GetObjectDisplayName | ( | const FGuid & | ObjectId | ) |
Get the display name of the object with the specified identifier.
| ObjectId | The object identifier. |
| FMovieScenePossessable & UMovieScene::GetPossessable | ( | const int32 | Index | ) |
Grabs a reference to a specific possessable by index.
| Index | of possessable to return. |
| int32 UMovieScene::GetPossessableCount | ( | ) | const |
Get the number of possessable objects in this scene.
| FMovieSceneSpawnable & UMovieScene::GetSpawnable | ( | int32 | Index | ) |
Grabs a reference to a specific spawnable by index.
| Index | of spawnable to return. Must be between 0 and GetSpawnableCount() |
| int32 UMovieScene::GetSpawnableCount | ( | ) | const |
Get the number of spawnable objects in this scene.
| bool UMovieScene::IsAMasterTrack | ( | const UMovieSceneTrack & | Track | ) | const |
Check whether the specified track is a master track in this scene.
|
overridevirtual |
Called during async load to determine if PostLoad can be called on the loading thread.
重载 UObject .
| void UMovieScene::MoveBindingContents | ( | const FGuid & | SourceBindingId, |
| const FGuid & | DestinationBindingId | ||
| ) |
Move all the contents (tracks, child bindings) of the specified binding ID onto another
| SourceBindingId | The identifier of the binding ID to move all tracks and children from |
| DestinationBindingId | The identifier of the binding ID to move the contents to |
|
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 .
|
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 .
|
protected |
Removes animation data bound to a GUID.
| Guid | The guid bound to animation data to remove |
| bool UMovieScene::RemoveMasterTrack | ( | UMovieSceneTrack & | Track | ) |
Removes a master track.
| Track | The track to remove. |
| bool UMovieScene::RemovePossessable | ( | const FGuid & | PossessableGuid | ) |
Removes a possessable from this movie scene.
| PossessableGuid | Guid of possessable to remove. |
| bool UMovieScene::RemoveTrack | ( | UMovieSceneTrack & | Track | ) |
| void UMovieScene::SetPlaybackRange | ( | const TRange< FFrameNumber > & | NewRange, |
| bool | bAlwaysMarkDirty = true |
||
| ) |
Set the playback range for this movie scene
| Range | The new playback range. Must not have any open bounds (ie must be a finite range) |
| bAlwaysMarkDirty | Whether 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 |
| void UMovieScene::SetPlaybackRange | ( | FFrameNumber | Start, |
| int32 | Duration, | ||
| bool | bAlwaysMarkDirty = true |
||
| ) |
Set the start and end playback positions (playback range) for this movie scene
| Start | The offset from 0-time to start playback of this movie scene |
| Duration | The number of frames the movie scene should play for |
| bAlwaysMarkDirty | Whether 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 |
| void UMovieScene::SetViewRange | ( | float | Start, |
| float | End | ||
| ) |
Set the start and end view range (inner) for this movie scene
| Start | The offset from 0-time to view this movie scene |
| End | The offset from 0-time to view this movie scene |
| void UMovieScene::SetWorkingRange | ( | float | Start, |
| float | End | ||
| ) |
Set the start and end working range (outer) for this movie scene
| Start | The offset from 0-time to view this movie scene. |
| End | The offset from 0-time to view this movie scene |