Navigation
API > API/Plugins > API/Plugins/ChaosVD
Inheritance Hierarchy
- TSharedFromThis
- FChaosVDPlaybackController
References
| Module | ChaosVD |
| Header | /Engine/Plugins/Experimental/ChaosVD/Source/ChaosVD/Public/ChaosVDPlaybackController.h |
| Include | #include "ChaosVDPlaybackController.h" |
Syntax
class FChaosVDPlaybackController : public TSharedFromThis< FChaosVDPlaybackController >
Remarks
Loads,unloads and owns a Chaos VD recording file
Variables
| Type | Name | Description | |
|---|---|---|---|
| FChaosVDPlaybackControllerFrameUpdated | ControllerFrameUpdatedDelegate | Delegate called when the a in a track changes | |
| FChaosVDPlaybackControllerUpdated | ControllerUpdatedDelegate | Delegate called when the data on the loaded recording changes | |
| TSharedPtr< FChaosVDRecording > | LoadedRecording | Ptr to the loaded recording | |
| TWeakPtr< FChaosVDScene > | SceneToControl | Ptr to the current Chaos VD Scene this controller controls | |
| TMap< EChaosVDTrackType, TrackInfoByIDMap > | TrackInfoPerType | Map containing all track info, by track type |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FChaosVDPlaybackController
(
const TWeakPtr< FChaosVDScene >& InSceneToControl |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | ConvertCurrentFrameToOtherTrackFrame
(
const FChaosVDTrackInfo* FromTrack, |
Converts the current frame number of a track, to a frame number in other tracks space time | |
| void | GetAvailableTrackInfosAtTrackFrame
(
EChaosVDTrackType TrackTypeToFind, |
Gets all the ids of the tracks, of the specified type, that are available available on the loaded recording, at a specified frame | |
| void | GetAvailableTracks
(
EChaosVDTrackType TrackType, |
Gets all the ids of the tracks, of the specified type, that are available available on the loaded recording | |
| TWeakPtr< FChaosVDScene > | Returns a weak ptr to the Scene this controller is controlling during playback | ||
| TWeakPtr< FChaosVDRecording > | Returns a weak ptr pointer to the loaded recording | ||
| FChaosVDTrackInfo * | GetMutableTrackInfo
(
EChaosVDTrackType TrackType, |
Gets the track info of the specified type with the specified ID | |
| int32 | GetTrackCurrentFrame
(
EChaosVDTrackType TrackType, |
Gets the current frame number at which the specified track is at | |
| int32 | GetTrackCurrentStep
(
EChaosVDTrackType TrackType, |
Gets the number of available frames for the specified track | |
| int32 | GetTrackFramesNumber
(
EChaosVDTrackType TrackType, |
Gets the number of available frames for the specified track | |
| const FChaosVDTrackInfo * | GetTrackInfo
(
EChaosVDTrackType TrackType, |
Gets the track info of the specified type with the specified ID | |
| int32 | GetTrackLastStepAtFrame
(
EChaosVDTrackType TrackType, |
Gets the index number of the last step available (available steps -1) | |
| const FChaosVDStepsContainer * | GetTrackStepsDataAtFrame
(
EChaosVDTrackType TrackType, |
Gets the available steps container in a track at the specified frame | |
| int32 | GetTrackStepsNumberAtFrame
(
EChaosVDTrackType TrackType, |
Gets the number of available steps in a track at the specified frame | |
| void | GoToRecordedGameFrame
(
int32 FrameNumber, |
Updates the controlled scene with the loaded data at specified game frame | |
| void | GoToRecordedSolverStep
(
int32 InTrackID, |
Updates the controlled scene with the loaded data at specified solver frame and solver step | |
| void | GoToTrackFrame
(
FGuid InstigatorID, |
Moves a track of the recording to the specified step and frame numbers | |
| void | Handles any data changes on the loaded recording - Usually called during Trace analysis | ||
| bool | Returns true if the controller has a valid recording loaded | ||
| bool | LoadChaosVDRecordingFromTraceSession
(
const FString& InSessionName |
Loads a recording using a Trace Session Name | |
| void | LockTrackInCurrentStep
(
EChaosVDTrackType TrackType, |
Locks the steps timeline of a given track so each time you move between frames, it will automatically scrub to the locked in step | |
| FChaosVDPlaybackControllerUpdated & | Called when data on the recording being controlled gets updated internally or externally (for example, during Trace Analysis) | ||
| FChaosVDPlaybackControllerFrameUpdated & | Called when a frame on a track is updated | ||
| void | PlayFromClosestKeyFrame
(
int32 InTrackID, |
Finds the closest Key frame to the provided frame number, and plays all the following frames until the specified frame number (no inclusive) | |
| void | UnloadCurrentRecording
(
EChaosVDUnloadRecordingFlags UnloadOptions |
Unloads the currently loaded recording | |
| void | UnlockTrackStep
(
EChaosVDTrackType TrackType, |
UnLocks the steps timeline of a given track so each time you move between frames, it will automatically scrub to the default step | |
| void | Updates (or adds) solvers data from the loaded recording to the solver tracks |
Constants
| Name | Description |
|---|---|
| GameTrackID | ID used for the Game Track |