RealDocs

AActor::GetPhysicsReplicationMode

function Engine Blueprint Since 5.1
#include "GameFramework/Actor.h"
Access: public Specifiers: UFUNCTIONBlueprintCallable

Description

Returns the current physics replication mode set on this actor. Reflects the last value passed to SetPhysicsReplicationMode, or the default (Default) if never changed.

Caveats & Gotchas

  • Not const — this is an oversight in the API; avoid calling it in const contexts where possible.
  • The returned value only has practical meaning when the actor has bReplicates=true and a physics-simulating root component.

Signature

ENGINE_API EPhysicsReplicationMode GetPhysicsReplicationMode()

Return Type

EPhysicsReplicationMode

Example

Query mode before branching logic C++
if (GetPhysicsReplicationMode() == EPhysicsReplicationMode::PredictiveInterpolation)
{
    // Physics Prediction plugin path
}

Version History

Introduced in: 5.1

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.