Navigation
API > API/Plugins > API/Plugins/Mover
Component to help display debug information for actors using the Mover Component. Is expected to be attached to the actor that has the mover component. Currently supports trajectory functionality and trailing functionality. Is also used in the gameplay debugger under the mover category.
| Name | UMoverDebugComponent |
| Type | class |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/Debug/MoverDebugComponent.h |
| Include Path | #include "Debug/MoverDebugComponent.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, Meta=(BlueprintSpawnableComponent))
class UMoverDebugComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UMoverDebugComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMoverDebugComponent() |
Debug/MoverDebugComponent.h |
Structs
| Name | Remarks |
|---|---|
| FTrailSample |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bShowCorrections | bool | Whether this component should show the corrections and rollbacks applied to the Actor it's attached too | Debug/MoverDebugComponent.h |
|
| bShowTrail | bool | Whether this component should show the trail of the movement component of the Actor it's attached too | Debug/MoverDebugComponent.h |
|
| bShowTrajectory | bool | Begin MoverDebugger component. | Debug/MoverDebugComponent.h |
|
| LookaheadSamplesPerSecond | int32 | Number of times trajectory will be sampled each second | Debug/MoverDebugComponent.h |
|
| LookaheadSeconds | float | Begin Trajectory Debug. | Debug/MoverDebugComponent.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bHasValidRollbackSamples | bool | Debug/MoverDebugComponent.h | ||
| ClientLocations | TArray< FVector > | Begin ShowCorrections. | Debug/MoverDebugComponent.h | |
| CorrectedLocations | TArray< FVector > | Debug/MoverDebugComponent.h | ||
| FrameOfLastSample | int32 | Debug/MoverDebugComponent.h | ||
| HighestRolledBackFrame | int32 | Debug/MoverDebugComponent.h | ||
| NumRolledBackSamplesToBuffer | int32 | Debug/MoverDebugComponent.h | ||
| NumSimulatedSamplesToBuffer | int32 | Debug/MoverDebugComponent.h | ||
| OldestSampleToRenderByGameSecs | float | Debug/MoverDebugComponent.h | ||
| RolledBackSamples | TUniquePtr< TCircularBuffer< FTrailSample > > | Debug/MoverDebugComponent.h | ||
| SimulatedSamples | TUniquePtr< TCircularBuffer< FTrailSample > > | Debug/MoverDebugComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DrawCorrections() |
Draw network corrections. Uses. | Debug/MoverDebugComponent.h | |
void DrawTrail() |
Draw the trail behind the actor. | Debug/MoverDebugComponent.h | |
void DrawTrajectory() |
Draw the current trajectory of the actor. | Debug/MoverDebugComponent.h | |
| Get a read-only sampling of where the actor has recently been, ordered by ascending age. | Debug/MoverDebugComponent.h |
|
|
void SetHistoryTracking
(
float SecondsToTrack, |
Begin Motion history tracking. | Debug/MoverDebugComponent.h |
|
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginPlay() |
Debug/MoverDebugComponent.h | ||
virtual void EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Debug/MoverDebugComponent.h | ||
virtual void InitializeComponent() |
Debug/MoverDebugComponent.h | ||
virtual void TickComponent
(
float DeltaTime, |
Debug/MoverDebugComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InitHistoryTracking() |
Debug/MoverDebugComponent.h | ||
void OnHistoryTrackingRollback
(
const FMoverTimeStep& NewTimeStep, |
Debug/MoverDebugComponent.h | ||
void UpdateHistoryTrackingForFrame
(
const FMoverTimeStep& TimeStep, |
Debug/MoverDebugComponent.h |