Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/Debug
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- UMoverDebugComponent
References
| Module | Mover |
| Header | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/Debug/MoverDebugComponent.h |
| Include | #include "Debug/MoverDebugComponent.h" |
Syntax
UCLASS (BlueprintType, Meta=(BlueprintSpawnableComponent))
class UMoverDebugComponent : public UActorComponent
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsTrackingHistory | ||
| bool | bShowCorrections | Whether this component should show the corrections and rollbacks applied to the Actor it's attached too | |
| bool | bShowTrail | Whether this component should show the trail of the movement component of the Actor it's attached too | |
| bool | bShowTrajectory | Begin MoverDebugger component. | |
| TRingBuffer< FTrajectorySampleInfo > | HistorySamples | ||
| int32 | HistorySamplesPerSecond | Target sampling rate for history tracking. Note that sampling rate is variable and may be higher during times of rapid change. | |
| float | HistoryTrackingSeconds | Begin Motion history tracking Max age of tracked samples. Feature is disabled for values <= 0. | |
| int32 | LookaheadSamplesPerSecond | Number of times trajectory will be sampled each second | |
| float | LookaheadSeconds | Begin Trajectory Debug. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Draw network corrections. Uses. | ||
| void | DrawTrail () |
Draw the trail behind the actor. | |
| void | Draw the current trajectory of the actor. | ||
| TArray< FTrajectorySampleInfo > | Get a read-only sampling of where the actor has recently been, ordered by ascending age. | ||
| void | |||
| void | OnHistoryTrackingRollback
(
const FMoverTimeStep& NewTimeStep, |
||
| void | SetHistoryTracking
(
float SecondsToTrack, |
Begin Motion history tracking. | |
| void | UpdateHistoryTrackingForFrame
(
const FMoverTimeStep& TimeStep, |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
Begins Play for the component. | |
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Ends gameplay for this component. | |
| void | Initializes the component. | ||
| void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |