Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UActorComponent replication not working when spawned in Blueprint

When an Actor Component is spawned at runtime in a Blueprint (not in the construction script, in BeginPlay for example) it is improperly replicated which results in the component not being created on the clients. When doing the same from C++ this works fine.

When writing the Actor Component to the network IsNameStableForNetworking() return true. Then when reading the component from the network, bStablyNamed will also be true which results in the new component not being created on the client while it should be.

The reason why IsNameStableForNetworking() returns true for Actor Components spawned though a Blueprint (and not though C++) isn't clear to me. I have traced the problem to UObject::IsNameStableForNetworking() returning true because IsDefaultSubobject() returns true, because ((UObject*)this)->GetArchetype() != GetClass()->GetDefaultObject(false)returns true.

The documentation of IsDefaultSubobject() says: true if this component was instanced from a template. false if this component was created manually at runtime. which makes this seem like a bug seeing as the Actor Component is spawned during runtime.

Product Version: UE 4.20
more ▼

asked Aug 06 '18 at 10:25 PM in Bug Reports

avatar image

361 3 4 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first


Wanted to respond here as well to note that this issue has been logged in our system, and you can track it using the link below:


Have a great day,


more ▼

answered Aug 07 '18 at 02:48 PM

avatar image

Sean L ♦♦ STAFF
43.7k 485 152 440

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question