RealDocs

UActorComponent::SetIsNetStartupComponent

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

Description

Sets the bIsNetStartupComponent flag. This is an engine-internal function called only by ULevel::InitializeNetworkActors during level load — do not call from game code.

Caveats & Gotchas

  • This function is explicitly documented in the header as engine-only: 'This should only be called by the engine in ULevel::InitializeNetworkActors'. Calling it from game code will corrupt the networking system's assumptions about which components are stable-name addressable.
  • There is no validation or side-effect handling — the flag is set directly. Misuse will not assert or log a warning, making it a silent source of hard-to-diagnose networking bugs.

Signature

void SetIsNetStartupComponent(const bool bInIsNetStartupComponent) { bIsNetStartupComponent = bInIsNetStartupComponent; }

Parameters

Name Type Description Default
bInIsNetStartupComponent const bool Whether to flag this component as a net startup component.

Return Type

void

Example

Engine-internal usage pattern (do not replicate in game code) C++
// Engine usage only — from ULevel::InitializeNetworkActors
for (UActorComponent* Component : Actor->GetComponents())
{
	Component->SetIsNetStartupComponent(true);
}

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.