AActor::GetIsReplicated
#include "GameFramework/Actor.h"
Access: public
Specifiers: inlineconst
Description
Returns whether replication is currently enabled for this actor. Equivalent to reading bReplicates directly.
Caveats & Gotchas
- • Returns the value of bReplicates, which is authoritative only on the server. On clients, this reflects the replicated value received from the server.
- • A return value of true does not mean the actor is currently being replicated to any specific client — it means replication is enabled. Relevancy and dormancy still gate actual data delivery.
- • Prefer this accessor over reading bReplicates directly so that the member can be encapsulated (Epic has noted intent to make it private in the future).
Signature
inline bool GetIsReplicated() const Return Type
bool Example
Gate logic on replication being enabled C++
if (SomeActor->GetIsReplicated())
{
// Safe to call network-related functions
SomeActor->ForceNetUpdate();
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?