UActorComponent::IsReadyForReplication
#include "Components/ActorComponent.h"
Access: public
Specifiers: const
Description
Returns true once ReadyForReplication has been called on the component, indicating it is fully initialised and safe for the replication system to start replicating its properties.
Caveats & Gotchas
- • This flag is set internally during component registration; do not call ReadyForReplication manually unless you are extending the replication lifecycle, as calling it early can cause replication to start before the component is properly initialised.
- • Returning false here does not prevent the component's owning actor from replicating — only component-level subobject replication is gated behind this flag.
Signature
bool IsReadyForReplication() const Return Type
bool Example
Guard replication setup on readiness C++
void UMyNetComponent::BeginPlay()
{
Super::BeginPlay();
if (IsReadyForReplication())
{
AddReplicatedSubObject(MySubObject);
}
} Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?