Navigation
API > API/Plugins > API/Plugins/LearningAgentsReplay
Subsystem to handle recording/loading replays. Exposes functionality to Blueprints
| Name | ULearningAgentsReplaySubsystem |
| Type | class |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsReplay/Public/LearningAgentsReplaySubsystem.h |
| Include Path | #include "LearningAgentsReplaySubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class ULearningAgentsReplaySubsystem : public UGameInstanceSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UGameInstanceSubsystem → ULearningAgentsReplaySubsystem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULearningAgentsReplaySubsystem() |
LearningAgentsReplaySubsystem.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CurrentReplayStreamer | TSharedPtr< INetworkReplayStreamer > | LearningAgentsReplaySubsystem.h | ||
| LocalPlayerDeletingReplays | TObjectPtr< ULocalPlayer > | LearningAgentsReplaySubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
LearningAgentsReplaySubsystem.h | ||
float GetReplayCurrentTime() |
Gets current playback time | LearningAgentsReplaySubsystem.h |
|
float GetReplayLengthInSeconds() |
Gets length of current replay | LearningAgentsReplaySubsystem.h |
|
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
LearningAgentsReplaySubsystem.h | ||
void OnDemoPlayStarted() |
LearningAgentsReplaySubsystem.h | ||
void PlayReplay
(
ULearningAgentsReplayListEntry* Replay |
Loads the appropriate map and plays a replay | LearningAgentsReplaySubsystem.h |
|
void RecordClientReplay
(
APlayerController* PlayerController |
Starts recording a client replay, and handles any file cleanup needed | LearningAgentsReplaySubsystem.h |
|
void SeekInActiveReplay
(
float TimeInSeconds |
Move forward or back in currently playing replay | LearningAgentsReplaySubsystem.h |
|
virtual bool ShouldCreateSubsystem
(
UObject* Outer |
LearningAgentsReplaySubsystem.h | ||
void StopRecordingReplay() |
Stops the current active recording | LearningAgentsReplaySubsystem.h |
|
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool DoesPlatformSupportReplays() |
Returns true if this platform supports replays at all | LearningAgentsReplaySubsystem.h |
|