UHT will only emit the REPLICATED_BASE_CLASS macro and set the NeedsPushModelHeaders flag when the class has replicated properties. If a base class doesn't have any replicated properties, it will lead to the check in UObject::SetNetPushIdDynamic being hit when attempting to replicate an object whose class is derived from this base class.
See attached repro project.
Create a base class (deriving from UObject) with no replicated properties.
Create a BP class deriving from this base class with replicated properties.
With push model enabled, create a replicated instance of this derived BP object.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-187843 in the post.
1 |
Component | UE - Networking |
---|---|
Affects Versions | 5.3 |
Target Fix | 5.6 |
Created | Jun 5, 2023 |
---|---|
Updated | Oct 25, 2024 |