RealDocs

UActorComponent::IsSupportedForNetworking

function Engine Since 4.0
#include "Components/ActorComponent.h"
Access: public Specifiers: virtualoverride

Description

Returns whether this component supports networking at all. The engine queries this before attempting to replicate or reference the component across the network.

Caveats & Gotchas

  • Components that return false here are completely excluded from networking consideration — neither their properties nor RPCs will be sent over the network regardless of UPROPERTY Replicated specifiers.
  • The default implementation returns true only when the component's owner is also supported for networking. Components on non-replicated actors will therefore return false.

Signature

ENGINE_API virtual bool IsSupportedForNetworking() const override;

Return Type

bool

Example

Guard network-only code with this check C++
if (MyComponent->IsSupportedForNetworking())
{
    // Safe to call RPCs or access replicated data
    MyComponent->ServerUpdateState();
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.